From 0e733bd0de5c6a14a510cab79b41146a40cb1800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 26 Sep 2015 02:54:32 +0200 Subject: [PATCH] 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. --- system-config/kernel-grub2.install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system-config/kernel-grub2.install b/system-config/kernel-grub2.install index dd02864..71f0a36 100755 --- a/system-config/kernel-grub2.install +++ b/system-config/kernel-grub2.install @@ -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