rpm: restore grub2-mkconfig call

kernel-install fallbacks to new-kernel-pkg when grubby is installed, so
restore a workaround in that case.
This commit is contained in:
Marek Marczykowski-Górecki 2015-08-08 21:55:45 +02:00
parent 13575bb29c
commit 907d420275
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 $?