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_chroot | |
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_chroot')
-rwxr-xr-x | helpers/lh_binary_chroot | 12 |
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}" ] |