summaryrefslogtreecommitdiff
path: root/functions/packagelists.sh
diff options
context:
space:
mode:
authorColin Watson <cjwatson@ubuntu.com>2012-09-30 09:33:06 +0200
committerDaniel Baumann <daniel@debian.org>2012-09-30 09:38:17 +0200
commitcab0d9e783ef18c334a09e0f1aa141dec0687978 (patch)
tree3b15c3a0231ff750221f6dd1f7e12f8e5bc311b2 /functions/packagelists.sh
parent2046ad7fdd0aebc26ff3ffb625c4446e83b76b68 (diff)
downloadvyos-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-xfunctions/packagelists.sh10
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\ *)