diff --git a/memtest86+.spec b/memtest86+.spec index 4e52b8d..1ed634c 100644 --- a/memtest86+.spec +++ b/memtest86+.spec @@ -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