]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Tweak how we call grub-install; don't abort on error
authorSteve McIntyre <steve@einval.com>
Mon, 12 Jul 2021 08:51:50 +0000 (09:51 +0100)
committerSteve McIntyre <steve@einval.com>
Mon, 12 Jul 2021 08:51:50 +0000 (09:51 +0100)
Not ideal behaviour either, but don't break upgrades. Copy the
behaviour from the grub packages here. Closes: #990966

debian/changelog
debian/signing-template/@final_pkg_name@.postinst.in

index a24705fe9ba43bb03816bbd2dcf618e72e98c1b1..f000a887f16ac123ad1cd5082b5e8868b865370e 100644 (file)
@@ -1,3 +1,11 @@
+shim (15.4-7) unstable; urgency=high
+
+  * Tweak how we call grub-install; don't abort on error. Not ideal
+    behaviour either, but don't break upgrades. Copy the behaviour
+    from the grub packages here. Closes: #990966
+
+ -- Steve McIntyre <93sam@debian.org>  Mon, 12 Jul 2021 08:53:54 +0100
+
 shim (15.4-6) unstable; urgency=high
 
   * Add arm64 patch to tweak section layout and stop crashing
index 3e8e53f7dc3b8f71912c3fbc6ecc60f5120723fd..3437badd0d6f5d71ffcf18c998abdb45029fd5fc 100755 (executable)
@@ -46,6 +46,14 @@ config_item ()
     eval echo "\$$1"
 }
 
+run_grub_install()
+{
+    if ! grub-install $@ ; then
+        echo "Failed: grub-install $@" >&2
+        echo "WARNING: Bootloader is not properly installed, system may not be bootable" >&2
+    fi
+}
+
 case $1 in
     configure)
        bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \
@@ -74,7 +82,7 @@ case $1 in
                OPTIONS="$OPTIONS --no-nvram"
            fi
 
-           grub-install --target=${GRUB_EFI_TARGET} $OPTIONS
+           run_grub_install --target=${GRUB_EFI_TARGET} $OPTIONS
        fi
        ;;
 esac