summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_grub
diff options
context:
space:
mode:
authorJesse Hathaway <jesse@mbuki-mvuki.org>2007-10-23 16:56:43 -0400
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:28 +0100
commita7491e13497b24d20517535ae7c767c7f32c40a1 (patch)
tree1105c23f66cc7491fd92be00c7893f576f822bd5 /helpers/lh_binary_grub
parent2a75e5b712d7b9ed4d6680a59e0dcdfa335bc8f5 (diff)
downloadlive-build-a7491e13497b24d20517535ae7c767c7f32c40a1.zip
live-build-a7491e13497b24d20517535ae7c767c7f32c40a1.tar.gz
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.
Diffstat (limited to 'helpers/lh_binary_grub')
-rwxr-xr-xhelpers/lh_binary_grub5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers/lh_binary_grub b/helpers/lh_binary_grub
index 9ba3286..1c05962 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