SHA256
1
0
forked from pool/tboot

- Also cover cleanup of bootloader configuration after package removal.

(bnc#1078262)

OBS-URL: https://build.opensuse.org/package/show/security/tboot?expand=0&rev=73
This commit is contained in:
Matthias Gerstner 2018-02-21 12:26:58 +00:00 committed by Git OBS Bridge
parent 968ae7728c
commit e922ce366c
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 21 12:26:10 UTC 2018 - matthias.gerstner@suse.com
- Also cover cleanup of bootloader configuration after package removal.
(bnc#1078262)
-------------------------------------------------------------------
Mon Feb 12 13:27:20 UTC 2018 - matthias.gerstner@suse.com

View File

@ -104,6 +104,16 @@ make debug=y install DISTDIR="%{buildroot}" MANPATH="%{buildroot}/%{_mandir}"
/sbin/update-bootloader --reinit || true
%endif
%postun
%if 0%{?update_bootloader_check_type_reinit_post:1}
# there is no clean solution for refresh during package removal at the moment.
# %posttrans is not executed during package removal.
%update_bootloader_check_type_reinit_post grub2 grub2-efi
%update_bootloader_posttrans
%else
/sbin/update-bootloader --reinit || true
%endif
%posttrans
%{?update_bootloader_posttrans}