bootstrap: use minbase flavour when LH_PACKAGES_LISTS is set to minimal
Since debootstrap 1.0.8 there's a variant called minbase that installs just essentials packages so base's size is greatly reduced. Use this variant when producing reduced images.
This commit is contained in:
parent
c7cbfa0754
commit
7d2d532f70
|
@ -93,13 +93,13 @@ then
|
||||||
then
|
then
|
||||||
case "${LH_PACKAGES_LISTS}" in
|
case "${LH_PACKAGES_LISTS}" in
|
||||||
stripped|minimal)
|
stripped|minimal)
|
||||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=buildd"
|
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=minbase"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
case "${LH_BOOTSTRAP_FLAVOUR}" in
|
case "${LH_BOOTSTRAP_FLAVOUR}" in
|
||||||
stripped|minimal)
|
stripped|minimal)
|
||||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=buildd"
|
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=minbase"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue