X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=f221d500aa4eccae6760becbd62936057b5ece56;hp=5b68a0b84059098337ecb978bc88d6c29d96ed4d;hb=df0f07e25b7de55740c79376b65cf962ffb3833f;hpb=eb41d15245c7313fc75c05bf5f3b56697c8c57e0 diff --git a/chroot-script b/chroot-script index 5b68a0b..f221d50 100755 --- a/chroot-script +++ b/chroot-script @@ -131,6 +131,11 @@ EOF # install additional packages {{{ packages() { + # Pre-seed the debconf database with answers. Each question will be marked + # as seen to prevent debconf from asking the question interactively. + [ -f /etc/debootstrap/debconf-selections ] && \ + cat /etc/debootstrap/debconf-selections | debconf-set-selections + if [ "$PACKAGES" = 'yes' ] ; then if ! [ -r /etc/debootstrap/packages ] ; then echo "Error: /etc/debootstrap/packages not found, exiting."