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:
parent
71342f4bd2
commit
0e733bd0de
@ -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…
Reference in New Issue
Block a user