summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
authorJesse Hathaway <jesse@mbuki-mvuki.org>2007-10-30 14:17:16 -0400
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:28 +0100
commit64333346c2073e672e10151bc616d0649ac3b91f (patch)
tree96072f2e8ed0dbae13979afda974c18d825c63e4 /helpers/lh_chroot_hacks
parentb7b7cd4c8193041eff058eaa2bf39c5a8bf32458 (diff)
downloadvyos-live-build-64333346c2073e672e10151bc616d0649ac3b91f.tar.gz
vyos-live-build-64333346c2073e672e10151bc616d0649ac3b91f.zip
add new option to mount cow device on nfs volume
At the moment this only works with the root volume on nfs as well. If we add a switch to configure the network early in the boot process then this option could be made available for other root mediums. This option works reliably on the latest kernel 2.6.23.1 On earlier kernels I experienced frequent oopses.
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-xhelpers/lh_chroot_hacks4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index 6eaef4f04..8c08d5504 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -50,6 +50,10 @@ Create_lockfile .lock
# Removing udev mac caching rule
Chroot "rm -f /etc/udev/rules.d/z25_persistent-net.rules"
+# Blanking out fstab, so the live-initramfs will know to populate it
+Chroot "rm -f /etc/fstab"
+Chroot "touch /etc/fstab"
+
case "${LH_BINARY_IMAGES}" in
net)
if [ ! -f chroot/usr/bin/smbmount ]