Skip to content

Commit

Permalink
Ensure that grub-pc/install_devices is pointing to the requested device
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mika committed Feb 22, 2016
1 parent 8a2c552 commit 813cdab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chroot-script
Expand Up @@ -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
Expand Down

0 comments on commit 813cdab

Please sign in to comment.