summaryrefslogtreecommitdiff
path: root/debian/signing-template
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2021-07-12 09:51:50 +0100
committerSteve McIntyre <steve@einval.com>2021-07-12 09:51:50 +0100
commit39c311d6773b915df277a62425a6715b2d977ab6 (patch)
tree1be452a4f492d70b92cbdf24c74ef9089f01c2a4 /debian/signing-template
parent6699b2ef0d48d061735ace4eab4dbde344120196 (diff)
downloadefi-boot-shim-debian/15.4-7.tar.gz
efi-boot-shim-debian/15.4-7.zip
Tweak how we call grub-install; don't abort on errordebian/15.4-7
Not ideal behaviour either, but don't break upgrades. Copy the behaviour from the grub packages here. Closes: #990966
Diffstat (limited to 'debian/signing-template')
-rwxr-xr-xdebian/signing-template/@final_pkg_name@.postinst.in10
1 files changed, 9 insertions, 1 deletions
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