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
pull/54/head mm_4a88c520
Marek Marczykowski-Górecki 4 years ago
parent 257d9e5b78
commit 4a88c520ac
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -19,5 +19,10 @@ case "$COMMAND" in
;;
esac
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

Loading…
Cancel
Save