From 00aa1d0c28de2895246a70c2beb09cd1e7e6cd13 Mon Sep 17 00:00:00 2001 From: Jesse Hathaway Date: Tue, 23 Oct 2007 16:56:43 -0400 Subject: add exposedroot option which exposes the root fs as ro This option allows you to expose the root read only. Using this option a person could upgrade the root filesystem or add packages without requiring the user to reboot. The root filesystem could be kept on an nfs volume or some other persistent medium. Multiple clients could then be booted off the same root fs. I used LTSP as a template to determine which directories to make rw. --- helpers/lh_binary_grub | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'helpers/lh_binary_grub') diff --git a/helpers/lh_binary_grub b/helpers/lh_binary_grub index 9ba328660..1c05962e4 100755 --- a/helpers/lh_binary_grub +++ b/helpers/lh_binary_grub @@ -178,6 +178,11 @@ then LH_BOOTAPPEND_LIVE="${LH_BOOTAPPEND_LIVE} union=${LH_UNION_FILESYSTEM}" fi +if [ "${LH_EXPOSED_ROOT}" != "disabled" ] +then + LH_BOOTAPPEND_LIVE="${LH_BOOTAPPEND_LIVE} exposedroot" +fi + LH_BOOTAPPEND_LIVE="$(echo ${LH_BOOTAPPEND_LIVE} | sed -e 's/ //')" # Parameters are listed at: linux/Documentation/kernel-parameters.txt -- cgit v1.2.3