This will allow live cd based images to utilize a readonly root file system. --- modules.d/90dmsquash-live/dmsquash-live-root | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root index e2e3ef8..7457e2c 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root +++ b/modules.d/90dmsquash-live/dmsquash-live-root @@ -21,6 +21,7 @@ live_dir=$(getarg live_dir) getarg live_ram && live_ram="yes" getarg reset_overlay && reset_overlay="yes" getarg readonly_overlay && readonly_overlay="--readonly" || readonly_overlay="" +getarg live_readonly && live_readonly="-o ro" || live_readonly="" overlay=$(getarg overlay) # FIXME: we need to be able to hide the plymouth splash for the check really @@ -173,6 +174,6 @@ if [ -b "$OSMIN_LOOPDEV" ]; then fi ln -s /dev/mapper/live-rw /dev/root -printf '/bin/mount /dev/mapper/live-rw %s\n' "$NEWROOT" > /mount/01-$$-live.sh +printf '/bin/mount %s /dev/mapper/live-rw %s\n' "$live_readonly" "$NEWROOT" > /mount/01-$$-live.sh exit 0 -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html