summaryrefslogtreecommitdiff
path: root/helpers/lh_bootstrap_cdebootstrap
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2007-09-27 21:54:23 -0300
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:27 +0100
commit48c24d0b1bf75a03acc06b96481def95d35a3704 (patch)
treeaf4654ac9dcb8f8f7f322f6a0ada4f6f8ad98ee3 /helpers/lh_bootstrap_cdebootstrap
parentabde3ce0d04e76294b7fa5e53db76c8a0bce4f11 (diff)
downloadvyos-live-build-48c24d0b1bf75a03acc06b96481def95d35a3704.tar.gz
vyos-live-build-48c24d0b1bf75a03acc06b96481def95d35a3704.zip
bootstrap: add support to include and exclude packages
To allow better customization of resulting system, support to include and exclude packages of base system has been added. It has been included for debootstrap and cdebootstrap helpers.
Diffstat (limited to 'helpers/lh_bootstrap_cdebootstrap')
-rwxr-xr-xhelpers/lh_bootstrap_cdebootstrap10
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap
index 084a37817..e2b627be0 100755
--- a/helpers/lh_bootstrap_cdebootstrap
+++ b/helpers/lh_bootstrap_cdebootstrap
@@ -69,6 +69,16 @@ then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LH_BOOTSTRAP_CONFIG}"
fi
+if [ -n "${LH_BOOTSTRAP_INCLUDE}" ]
+then
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --include=${LH_BOOTSTRAP_INCLUDE}"
+fi
+
+if [ -n "${LH_BOOTSTRAP_EXCLUDE}" ]
+then
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --exclude=${LH_BOOTSTRAP_EXCLUDE}"
+fi
+
if [ -n "${LH_BOOTSTRAP_KEYRING}" ]
then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LH_BOOTSTRAP_KEYRING}"