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:
parent
13575bb29c
commit
907d420275
@ -348,6 +348,11 @@ done
|
|||||||
%posttrans
|
%posttrans
|
||||||
/bin/kernel-install add %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $?
|
/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
|
%preun
|
||||||
/bin/kernel-install remove %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $?
|
/bin/kernel-install remove %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user