diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:15 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:15 +0200 |
commit | 9a280c0dc1591777bc5014ef6450a8cef7eb033a (patch) | |
tree | 324691f4f851c719b864229b399584f035b2873f /helpers/lh_binary | |
parent | 615360e7ad327a88578dcaea7d0d677c840c94fb (diff) | |
download | vyos-live-build-9a280c0dc1591777bc5014ef6450a8cef7eb033a.tar.gz vyos-live-build-9a280c0dc1591777bc5014ef6450a8cef7eb033a.zip |
Adding live-helper 1.0~a19-1.
Diffstat (limited to 'helpers/lh_binary')
-rwxr-xr-x | helpers/lh_binary | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/helpers/lh_binary b/helpers/lh_binary index c7ab7762e..7a71cbc61 100755 --- a/helpers/lh_binary +++ b/helpers/lh_binary @@ -27,13 +27,16 @@ Arguments "${@}" # Preparing root filesystem lh_binary_chroot ${*} -# Configuring chroot -lh_chroot_proc install ${*} -lh_chroot_sysfs install ${*} -lh_chroot_hosts install ${*} -lh_chroot_resolv install ${*} -lh_chroot_hostname install ${*} -lh_chroot_sources install ${*} +if [ "${LIVE_CHROOT_BUILD}" = "enabled" ] +then + # Configuring chroot + lh_chroot_proc install ${*} + lh_chroot_sysfs install ${*} + lh_chroot_hosts install ${*} + lh_chroot_resolv install ${*} + lh_chroot_hostname install ${*} + lh_chroot_sources install ${*} +fi # Building root filesystem lh_binary_rootfs ${*} @@ -59,10 +62,13 @@ lh_binary_net ${*} lh_binary_tar ${*} lh_binary_usb-hdd ${*} -# Deconfiguring chroot -rm -f .stage/chroot_sources -lh_chroot_hostname remove ${*} -lh_chroot_resolv remove ${*} -lh_chroot_hosts remove ${*} -lh_chroot_sysfs remove ${*} -lh_chroot_proc remove ${*} +if [ "${LIVE_CHROOT_BUILD}" = "enabled" ] +then + # Deconfiguring chroot + rm -f .stage/chroot_sources + lh_chroot_hostname remove ${*} + lh_chroot_resolv remove ${*} + lh_chroot_hosts remove ${*} + lh_chroot_sysfs remove ${*} + lh_chroot_proc remove ${*} +fi |