Adding patch from Dusty Hendrickson <dhendrickson@cleversafe.com> to allow lh_bootstrap_debootstrap to bootstrap from different section than main and evaluate LH_CATEGORIES for that purpose.
This commit is contained in:
parent
82277aec3b
commit
22c6dc6149
|
@ -57,6 +57,12 @@ then
|
|||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch ${LH_ARCHITECTURE}"
|
||||
fi
|
||||
|
||||
if [ "${LH_CATEGORIES}" != "main" ]
|
||||
then
|
||||
# Modify categories to remove leading/trailing whitespaces and replace other whitepspace with commas
|
||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components $(echo ${LH_CATEGORIES} | sed -E -e 's/^[ \t]*//;s/[ \t]*$//' -e 's/[ \t]+/,/g')"
|
||||
fi
|
||||
|
||||
if [ -n "${LH_BOOTSTRAP_CONFIG}" ]
|
||||
then
|
||||
if [ -d "/usr/share/debootstrap/scripts/" ]
|
||||
|
|
Loading…
Reference in New Issue