[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [base-installer] [PATCH] Allow preseeding the debootstrap variant to use



Paul Wise <pabs@debian.org> (2014-02-25):
> ---
>  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} \

I don't think this would work in the non-preseeded case?
| kibi@arya:/tmp$ sudo debootstrap --variant= sid sid http://ftp.fr.debian.org/debian
| [sudo] password for kibi: 
| E: unrecognized or invalid option --variant=

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: