Run /sbin/update-bootloader --refresh after upgrade or install

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=269
This commit is contained in:
Charles Arnold 2013-09-04 21:57:48 +00:00 committed by Git OBS Bridge
parent 86c3c4dd54
commit d88deaa334

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: xen Name: xen
ExclusiveArch: %ix86 x86_64 %arm aarch64 ExclusiveArch: %ix86 x86_64 %arm aarch64
%define xvers 4.3 %define xvers 4.3
@ -1153,6 +1154,11 @@ if [ -e /boot/efi/efi/SuSE/xen-%{version}-%{release}.efi ]; then
rm /boot/efi/efi/SuSE/xen-%{version}-%{release}.efi rm /boot/efi/efi/SuSE/xen-%{version}-%{release}.efi
fi fi
%posttrans
if [ -x /sbin/update-bootloader ]; then
/sbin/update-bootloader --refresh; exit 0
fi
%post tools %post tools
%if %{?with_xend}0 %if %{?with_xend}0
%if %{?with_systemd}0 %if %{?with_systemd}0