diff options
author | Colin Watson <cjwatson@ubuntu.com> | 2012-09-30 09:33:06 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-09-30 09:38:17 +0200 |
commit | cab0d9e783ef18c334a09e0f1aa141dec0687978 (patch) | |
tree | 3b15c3a0231ff750221f6dd1f7e12f8e5bc311b2 /functions/packagelists.sh | |
parent | 2046ad7fdd0aebc26ff3ffb625c4446e83b76b68 (diff) | |
download | vyos-live-build-cab0d9e783ef18c334a09e0f1aa141dec0687978.tar.gz vyos-live-build-cab0d9e783ef18c334a09e0f1aa141dec0687978.zip |
If --build-with-chroot is false, run ! lines in package-lists in the host system.
Diffstat (limited to 'functions/packagelists.sh')
-rwxr-xr-x | functions/packagelists.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/packagelists.sh b/functions/packagelists.sh index 8a6141b21..aad1ea2d3 100755 --- a/functions/packagelists.sh +++ b/functions/packagelists.sh @@ -43,7 +43,15 @@ Expand_packagelist () \!*) _EXEC="$(echo ${_LB_LINE} | sed -e 's|^!||')" - chroot chroot ${_EXEC} + case "${LB_BUILD_WITH_CHROOT}" in + true) + chroot chroot sh -c "${_EXEC}" + ;; + + false) + eval ${_EXEC} + ;; + esac ;; \#if\ *) |