spec: regenerate grub2 config after install

Apparently new-kernel-pkg does not work for grub2 config with xen
entries (new kernel isn't added to it at all). So regenerate grub2
config using grub2-mkconfig.
This commit is contained in:
Marek Marczykowski 2013-02-06 00:16:14 +01:00
parent cb4b5829d4
commit 2bfc20ed9b

View File

@ -363,6 +363,11 @@ fi
%posttrans
/sbin/new-kernel-pkg --package %{name}-%{kernelrelease} --rpmposttrans %{kernelrelease}
# grubby (used by new-kernel-pkg) do not understand xen entries in grub2 config
if [ -e /boot/grub2/grub.cfg ]; then
grub2-mkconfig > /boot/grub2/grub.cfg
fi
%preun
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{kernelrelease}