From d49b6b56b77dc4b7474d5abf94ba76ca9c84e01c Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Sun, 8 Nov 2020 14:40:21 +0000 Subject: [PATCH] Don't call grub-install on fresh install of grub-pc It's the job of installers to do that after a fresh install. --- debian/changelog | 2 ++ debian/postinst.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f3fd8bfef..e8ad98e24 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,8 @@ grub2 (2.04-10) UNRELEASED; urgency=medium [ Dimitri John Ledkov ] * grub-install: Add backup and restore. + * Don't call grub-install on fresh install of grub-pc. It's the job of + installers to do that after a fresh install. -- Ian Campbell Sat, 27 Jun 2020 10:32:02 +0100 diff --git a/debian/postinst.in b/debian/postinst.in index 43526bd1d..47a751ba6 100644 --- a/debian/postinst.in +++ b/debian/postinst.in @@ -501,7 +501,7 @@ case "$1" in elif running_in_container; then # Skip grub-install in containers. : - elif test -z "$2" || test -e /boot/grub/core.img || \ + elif test -e /boot/grub/core.img || \ test -e /boot/grub/@FIRST_CPU_PLATFORM@/core.img || \ test "$UPGRADE_FROM_GRUB_LEGACY" || test "$wubi_device"; then question=grub-pc/install_devices -- 2.39.5