mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 15:46:06 -04:00
run update-grub from postinst so /etc/default/grub.d changes take effect
This commit is contained in:
parent
661bcd8603
commit
8132052ce0
1 changed files with 12 additions and 0 deletions
12
debian/security-misc.postinst
vendored
12
debian/security-misc.postinst
vendored
|
@ -35,6 +35,18 @@ pam-auth-update --package
|
|||
|
||||
/usr/lib/security-misc/permission-lockdown
|
||||
|
||||
## 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
|
||||
|
||||
true "INFO: debhelper beginning here."
|
||||
|
||||
#DEBHELPER#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue