summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_chroot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:15 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:26 +0100
commitc79ab34a7c597c9e3ab202c644121c6944789424 (patch)
tree324691f4f851c719b864229b399584f035b2873f /helpers/lh_binary_chroot
parent0d5ff4ca7596790f853cf637e0fe225cad810a76 (diff)
downloadvyos-live-build-c79ab34a7c597c9e3ab202c644121c6944789424.tar.gz
vyos-live-build-c79ab34a7c597c9e3ab202c644121c6944789424.zip
Adding live-helper 1.0~a19-1.
Diffstat (limited to 'helpers/lh_binary_chroot')
-rwxr-xr-xhelpers/lh_binary_chroot12
1 files changed, 6 insertions, 6 deletions
diff --git a/helpers/lh_binary_chroot b/helpers/lh_binary_chroot
index 55be65c08..6d13bad62 100755
--- a/helpers/lh_binary_chroot
+++ b/helpers/lh_binary_chroot
@@ -58,17 +58,17 @@ then
${LH_ROOT_COMMAND} umount chroot/sys
fi
+if [ "${LIVE_CHROOT_BUILD}" = "disabled" ]
+then
+ exit 0
+fi
+
# Removing old chroot
${LH_ROOT_COMMAND} rm -rf chroot/chroot
${LH_ROOT_COMMAND} rm -rf chroot.tmp
# Copying new chroot
-#if [ "${LIVE_BINARY_INDICES}" = "enabled" ]
-#then
- ${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
-#else
-# ${LH_ROOT_COMMAND} cp -al chroot chroot.tmp
-#fi
+${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot
if [ -n "${LH_ROOT_COMMAND}" ]