Adding upstream version 1.79+debian.
[live-boot-grml.git] / scripts / casper
index 346a6ca..776b57f 100644 (file)
@@ -235,6 +235,13 @@ setup_unionfs() {
     
     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##*/}"