diff options
author | Jesse Hathaway <jesse@mbuki-mvuki.org> | 2007-10-23 16:56:43 -0400 |
---|---|---|
committer | Jesse Hathaway <jesse@mbuki-mvuki.org> | 2007-10-24 13:36:42 -0400 |
commit | 00aa1d0c28de2895246a70c2beb09cd1e7e6cd13 (patch) | |
tree | 1105c23f66cc7491fd92be00c7893f576f822bd5 /helpers/lh_chroot_hosts | |
parent | acff181e6333020449a067803b348ccd55668721 (diff) | |
download | vyos-live-build-00aa1d0c28de2895246a70c2beb09cd1e7e6cd13.tar.gz vyos-live-build-00aa1d0c28de2895246a70c2beb09cd1e7e6cd13.zip |
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_chroot_hosts')
-rwxr-xr-x | helpers/lh_chroot_hosts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts index c4d633e35..848038369 100755 --- a/helpers/lh_chroot_hosts +++ b/helpers/lh_chroot_hosts @@ -87,8 +87,9 @@ EOF # Restore hosts file mv chroot/etc/hosts.orig chroot/etc/hosts else - # Remove hosts file - rm -f chroot/etc/hosts + # Blank out hosts file, don't remove in case + # its a symlink, as in the case of exposedroot mode + cat /dev/null > chroot/etc/hosts fi # Removing stage file |