=== modified file 'debian/changelog' --- debian/changelog 2006-10-20 18:59:57 +0000 +++ debian/changelog 2006-10-25 11:24:20 +0000 @@ -1,3 +1,11 @@ +casper (1.78) UNRELEASED; urgency=low + + * Mount the first squashfs as /rofs. Breaks showmounts and won't work + properly with stacked filesystems, but works around a kernel oops with + multiply-mounted squashfses for Edgy. + + -- Colin Watson Wed, 25 Oct 2006 12:19:44 +0100 + casper (1.77) edgy; urgency=low * Honour console-setup/modelcode preseeding. Needed for Malone #66719, === modified file 'scripts/casper' --- scripts/casper 2006-10-05 14:26:23 +0000 +++ scripts/casper 2006-10-25 11:30:28 +0000 @@ -235,6 +235,13 @@ 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##*/}"