[base-installer] [PATCH] Allow preseeding the debootstrap variant to use
---
debian/bootstrap-base.postinst | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/debian/bootstrap-base.postinst b/debian/bootstrap-base.postinst
index 5beaf01..13950e7 100755
--- a/debian/bootstrap-base.postinst
+++ b/debian/bootstrap-base.postinst
@@ -27,6 +27,10 @@ if [ ! -e /usr/share/debootstrap/scripts/"$DEBOOTSTRAP_SCRIPT" ]; then
error "debootstrap script '$DEBOOTSTRAP_SCRIPT' doesn't exist"
fi
+# Check if a specific variant should be used
+db_get base-installer/debootstrap_variant
+DEBOOTSTRAP_VARIANT="--variant=$RET"
+
# Avoid debconf sending email during the base install process
DEBCONF_ADMIN_EMAIL=""
export DEBCONF_ADMIN_EMAIL
@@ -128,6 +132,7 @@ install_base_system () {
--resolve-deps \
${include} ${exclude} \
${sigcheck} \
+ ${DEBOOTSTRAP_VARIANT} \
${DISTRIBUTION} /target \
"$PROTOCOL://$MIRROR$DIRECTORY" \
${DEBOOTSTRAP_SCRIPT} \
--
1.8.5.3
Reply to: