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.
This commit is contained in:
Otavio Salvador 2007-09-27 21:54:23 -03:00 committed by Daniel Baumann
parent abde3ce0d0
commit 48c24d0b1b
4 changed files with 34 additions and 0 deletions

View File

@ -278,6 +278,12 @@ Set_defaults ()
fi
fi
# Include packages on base
# LH_BOOTSTRAP_INCLUDE
# Exclude packages on base
# LH_BOOTSTRAP_EXCLUDE
# Setting distribution configuration value
# LH_BOOTSTRAP_CONFIG

View File

@ -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}"

View File

@ -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"

View File

@ -722,6 +722,14 @@ LH_ARCHITECTURE="${LH_ARCHITECTURE}"
# (Default: empty)
LH_BOOTSTRAP_CONFIG="${LH_BOOTSTRAP_CONFIG}"
# \$LH_BOOTSTRAP_INCLUDE: include packages on base
# (Default: empty)
LH_BOOTSTRAP_INCLUDE="${LH_BOOTSTRAP_INCLUDE}"
# \$LH_BOOTSTRAP_EXCLUDE: exclude packages on base
# (Default: empty)
LH_BOOTSTRAP_EXCLUDE="${LH_BOOTSTRAP_EXCLUDE}"
# \$LH_BOOTSTRAP_FLAVOUR: select flavour to use
# (Default: ${LH_BOOTSTRAP_FLAVOUR})
LH_BOOTSTRAP_FLAVOUR="${LH_BOOTSTRAP_FLAVOUR}"