X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fcasper;h=776b57f99a2edb23f40b161b234abc16ac3fda94;hb=62ae3a8ffbc7996ae0096d69607735245d6ef161;hp=346a6caf223a11209488699558ff9ba5e8fba831;hpb=de36f9d18a40d4fabf45cfd290f76f8f8c6fc555;p=live-boot-grml.git diff --git a/scripts/casper b/scripts/casper index 346a6ca..776b57f 100644 --- a/scripts/casper +++ b/scripts/casper @@ -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##*/}"