kernel-install: consider both grub2 and grub2-efi configs

Since EFI boot now also use grub2, update its config too when present.

Reported-by: @JarrahG
QubesOS/qubes-issues#4902
This commit is contained in:
Marek Marczykowski-Górecki 2019-12-19 05:33:34 +01:00
parent 257d9e5b78
commit 4a88c520ac
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -19,5 +19,10 @@ case "$COMMAND" in
;; ;;
esac esac
if [ -x /usr/sbin/grub2-mkconfig ]; then if [ -x /usr/sbin/grub2-mkconfig ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg if [ -e /boot/grub2/grub.cfg ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
fi
if [ -e /boot/efi/EFI/qubes/grub.cfg ]; then
grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
fi
fi fi