From 813cdabf07b257c55d0dc943fc33f52a027a8f9d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 22 Feb 2016 21:23:38 +0100 Subject: [PATCH] Ensure that grub-pc/install_devices is pointing to the requested device Noticed via a customer (MT#16911), while it's not causing real problems with wheezy->jessie upgrades it still might hit us in the future, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711019 --- chroot-script | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chroot-script b/chroot-script index e14ca21..978eea3 100755 --- a/chroot-script +++ b/chroot-script @@ -569,6 +569,11 @@ grub_install() { return 0 fi + # make sure this is pre-defined so we have sane settings for automated + # upgrades, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711019 + echo "Setting grub-pc debconf configuration for install device to $GRUB" + echo "grub-pc grub-pc/install_devices multiselect $GRUB" | debconf-set-selections + if ! dpkg --list grub-pc 2>/dev/null | grep -q '^ii' ; then echo "Notice: grub option set but no grub-pc package, installing it therefore." DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL grub-pc -- 2.1.4