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:
parent
d88deaa334
commit
3342e41570
12
xen.spec
12
xen.spec
@ -1143,18 +1143,6 @@ rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
|
|||||||
%if %{?with_dom0_support}0
|
%if %{?with_dom0_support}0
|
||||||
|
|
||||||
%post
|
%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
|
if [ -x /sbin/update-bootloader ]; then
|
||||||
/sbin/update-bootloader --refresh; exit 0
|
/sbin/update-bootloader --refresh; exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user