Cleanup Old BLS Config Location on Upgrade (RHBZ#2219178)

This commit is contained in:
Jonathan Steffan 2023-07-04 15:28:48 -06:00
parent e01efa4e1c
commit df146564ab

View File

@ -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