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.
pull/3/head
Marek Marczykowski-Górecki 9 years ago
parent 71342f4bd2
commit 0e733bd0de
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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

Loading…
Cancel
Save