From 48c24d0b1bf75a03acc06b96481def95d35a3704 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 27 Sep 2007 21:54:23 -0300 Subject: 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. --- helpers/lh_bootstrap_debootstrap | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpers/lh_bootstrap_debootstrap') diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap index 99df978b1..3be396800 100755 --- a/helpers/lh_bootstrap_debootstrap +++ b/helpers/lh_bootstrap_debootstrap @@ -69,6 +69,16 @@ then LH_DEBOOTSTRAP_SCRIPT="/usr/lib/debootstrap/scripts/${LH_BOOTSTRAP_CONFIG}" fi +if [ -n "${LH_BOOTSTRAP_INCLUDE}" ] +then + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --include=${LH_BOOTSTRAP_INCLUDE}" +fi + +if [ -n "${LH_BOOTSTRAP_EXCLUDE}" ] +then + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --exclude=${LH_BOOTSTRAP_EXCLUDE}" +fi + if [ "${LH_VERBOSE}" = "true" ] then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --verbose" -- cgit v1.2.3