From 8821906186ab14a7c14f87b7743b4791ded2573d Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 5 Dec 2019 20:45:23 +0000 Subject: [PATCH] qubes-kernel-vm-support.postinst run update-grub https://github.com/QubesOS/qubes-issues/issues/5212 --- debian/qubes-kernel-vm-support.postinst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/qubes-kernel-vm-support.postinst b/debian/qubes-kernel-vm-support.postinst index d3e7ded..a2c23a5 100644 --- a/debian/qubes-kernel-vm-support.postinst +++ b/debian/qubes-kernel-vm-support.postinst @@ -46,6 +46,19 @@ esac #DEBHELPER# +## https://phabricator.whonix.org/T377 +## Debian has no update-grub trigger yet: +## https://bugs.debian.org/481542 + +if command -v update-grub >/dev/null 2>&1; then + update-grub || \ + echo "$DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME ERROR: Running \ +'update-grub' failed with exit code $?. $DPKG_MAINTSCRIPT_PACKAGE is most \ +likely only the trigger, not the cause. Unless you know this is not an issue, \ +you should fix running 'update-grub', otherwise your system might no longer \ +boot." >&2 +fi + exit 0 # vim: set ts=4 sw=4 sts=4 et :