Don't use %posttrans

Just use %post for calling update-bootloader --refresh

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=270
This commit is contained in:
Charles Arnold 2013-09-05 16:55:53 +00:00 committed by Git OBS Bridge
parent d88deaa334
commit 3342e41570

View File

@ -1143,18 +1143,6 @@ rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
%if %{?with_dom0_support}0
%post
# EFI
if [ -d /boot/efi/efi/SuSE -a -e /usr/lib64/efi/xen-%{version}-%{release}.efi ]; then
cp /usr/lib64/efi/xen-%{version}-%{release}.efi /boot/efi/efi/SuSE/
fi
%postun
# EFI
if [ -e /boot/efi/efi/SuSE/xen-%{version}-%{release}.efi ]; then
rm /boot/efi/efi/SuSE/xen-%{version}-%{release}.efi
fi
%posttrans
if [ -x /sbin/update-bootloader ]; then
/sbin/update-bootloader --refresh; exit 0
fi