From d88deaa3344508d65fa8484727a40790d5f4440f417b79d58c101eedf6080a1d Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Wed, 4 Sep 2013 21:57:48 +0000 Subject: [PATCH] Run /sbin/update-bootloader --refresh after upgrade or install OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=269 --- xen.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen.spec b/xen.spec index 371b9ec..6f81794 100644 --- a/xen.spec +++ b/xen.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: xen ExclusiveArch: %ix86 x86_64 %arm aarch64 %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 fi +%posttrans +if [ -x /sbin/update-bootloader ]; then + /sbin/update-bootloader --refresh; exit 0 +fi + %post tools %if %{?with_xend}0 %if %{?with_systemd}0