Cleanup Old BLS Config Location on Upgrade (RHBZ#2219178)
This commit is contained in:
parent
e01efa4e1c
commit
df146564ab
@ -62,6 +62,17 @@ popd
|
||||
%{_libdir}/%{name}/memtest86+.kernel-install-plugin
|
||||
%{_datarootdir}/%{name}/memtest86+%{mt_isa}.iso
|
||||
|
||||
|
||||
%post
|
||||
if [ $1 -gt 1 ]; then
|
||||
# cleanup upgrade BLS location changes
|
||||
if [ -d /boot/loader/entries ]; then
|
||||
rm -f /boot/loader/entries/*-0-memtest86+-6*.conf
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
|
||||
%posttrans
|
||||
MEMTEST_IMAGE="memtest86+%{mt_isa}.bin"
|
||||
if [ -d /sys/firmware/efi/ ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user