From 907d42027513b69c3a1c66b730803d9905acd8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 8 Aug 2015 21:55:45 +0200 Subject: [PATCH] rpm: restore grub2-mkconfig call kernel-install fallbacks to new-kernel-pkg when grubby is installed, so restore a workaround in that case. --- kernel.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel.spec b/kernel.spec index 4f661c7..8f56c6d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -348,6 +348,11 @@ done %posttrans /bin/kernel-install add %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $? +# grubby (used by new-kernel-pkg) do not understand xen entries in grub2 config +if [ -x /sbin/new-kernel-pkg -a -e /boot/grub2/grub.cfg ]; then + grub2-mkconfig > /boot/grub2/grub.cfg +fi + %preun /bin/kernel-install remove %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $?