summaryrefslogtreecommitdiff
path: root/helpers/lh_binary
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_binary')
-rwxr-xr-xhelpers/lh_binary34
1 files changed, 20 insertions, 14 deletions
diff --git a/helpers/lh_binary b/helpers/lh_binary
index c7ab776..7a71cbc 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