summaryrefslogtreecommitdiff
path: root/functions/packagelists.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-28 21:57:03 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-28 23:38:43 +0200
commita691caa0f2738941075efe00df9af06cb10e98c1 (patch)
tree90f230d2689407217384f75ebc26b00c179046ce /functions/packagelists.sh
parentf84a9799065213448b6d4abe4bc0a45ccec76d89 (diff)
downloadvyos-live-build-a691caa0f2738941075efe00df9af06cb10e98c1.tar.gz
vyos-live-build-a691caa0f2738941075efe00df9af06cb10e98c1.zip
Adding support for executable statements as '! $command' in package lists.
Diffstat (limited to 'functions/packagelists.sh')
-rwxr-xr-xfunctions/packagelists.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions/packagelists.sh b/functions/packagelists.sh
index 0e2d5ff57..eda9cf542 100755
--- a/functions/packagelists.sh
+++ b/functions/packagelists.sh
@@ -40,6 +40,12 @@ Expand_packagelist ()
while read _LB_LINE
do
case "${_LB_LINE}" in
+ \!*)
+ _EXEC="$(echo ${_LB_LINE} | sed -e 's|^!||')"
+
+ chroot chroot ${_EXEC}
+ ;;
+
\#if\ *)
if [ ${_LB_NESTED} -eq 1 ]
then