* [PATCH] add live_readonly karg to mount /dev/mapper/live-rw as readonly
@ 2010-03-04 20:09 Joey Boggs
[not found] ` <1267733352-15845-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Joey Boggs @ 2010-03-04 20:09 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Joey Boggs
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-05 10:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 20:09 [PATCH] add live_readonly karg to mount /dev/mapper/live-rw as readonly Joey Boggs
[not found] ` <1267733352-15845-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-03-05 10:50 ` Harald Hoyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.