kernel-install: call grub2-mkconfig only when it is installed

On systems booting with EFI, there is no grub2 installed at all - the
system is started directly to xen.efi.
This commit is contained in:
Marek Marczykowski-Górecki 2015-09-26 02:54:32 +02:00
parent 71342f4bd2
commit 0e733bd0de
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -11,4 +11,6 @@ case "$COMMAND" in
rm -f "/boot/initramfs-${KVER}.img"
;;
esac
if [ -x /usr/sbin/grub2-mkconfig ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
fi