summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog8
-rwxr-xr-xdebian/signing-template/@final_pkg_name@.postinst.in10
2 files changed, 17 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index a24705fe..f000a887 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/debian/signing-template/@final_pkg_name@.postinst.in b/debian/signing-template/@final_pkg_name@.postinst.in
index 3e8e53f7..3437badd 100755
--- a/debian/signing-template/@final_pkg_name@.postinst.in
+++ b/debian/signing-template/@final_pkg_name@.postinst.in
@@ -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