projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding upstream version 1.79+debian.
[live-boot-grml.git]
/
scripts
/
casper
diff --git
a/scripts/casper
b/scripts/casper
index
346a6ca
..
776b57f
100644
(file)
--- a/
scripts/casper
+++ b/
scripts/casper
@@
-235,6
+235,13
@@
setup_unionfs() {
mount -t unionfs -o dirs=/cow=rw:$rofsstring unionfs "$rootmnt"
mount -t unionfs -o dirs=/cow=rw:$rofsstring unionfs "$rootmnt"
+ # move the first mount; no head in busybox-initramfs
+ for d in $(mount -t squashfs | cut -d\ -f 3); do
+ mkdir -p "${rootmnt}/rofs"
+ mount -o move "${d}" "${rootmnt}/rofs"
+ break
+ done
+
if grep -q showmounts /proc/cmdline; then
for d in $(mount -t squashfs | cut -d\ -f 3); do
mkdir -p "${rootmnt}/casper/${d##*/}"
if grep -q showmounts /proc/cmdline; then
for d in $(mount -t squashfs | cut -d\ -f 3); do
mkdir -p "${rootmnt}/casper/${d##*/}"