Not ideal behaviour either, but don't break upgrades. Copy the
behaviour from the grub packages here. Closes: #990966
+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
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 | \
OPTIONS="$OPTIONS --no-nvram"
fi
- grub-install --target=${GRUB_EFI_TARGET} $OPTIONS
+ run_grub_install --target=${GRUB_EFI_TARGET} $OPTIONS
fi
;;
esac