From 3342e41570bb9a1bed54941e726badfae815ef1f3333d190f633f73948a288f1 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Thu, 5 Sep 2013 16:55:53 +0000 Subject: [PATCH] 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 --- xen.spec | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/xen.spec b/xen.spec index 6f81794..605c6a3 100644 --- a/xen.spec +++ b/xen.spec @@ -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