]> git.proxmox.com Git - grub2.git/commitdiff
Don't call grub-install on fresh install of grub-pc
authorDimitri John Ledkov <xnox@ubuntu.com>
Sun, 8 Nov 2020 14:40:21 +0000 (14:40 +0000)
committerColin Watson <cjwatson@debian.org>
Sun, 8 Nov 2020 16:12:29 +0000 (16:12 +0000)
It's the job of installers to do that after a fresh install.

debian/changelog
debian/postinst.in

index f3fd8bfef088284bdadd25a46f114ba1750adbcd..e8ad98e24a45cbd0b6dea0bdcd79b228278e08f1 100644 (file)
@@ -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 <ijc@debian.org>  Sat, 27 Jun 2020 10:32:02 +0100
 
index 43526bd1d478db6489e0c33add50109f98062ef9..47a751ba66082f48dd5f75c8a627830b1438c341 100644 (file)
@@ -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