diff --git a/SPECS/grub2.spec b/SPECS/grub2.spec index 32f9f9dd..9caed1a5 100644 --- a/SPECS/grub2.spec +++ b/SPECS/grub2.spec @@ -16,7 +16,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 80%{?dist}.alma.1 +Release: 82%{?dist}.alma.1 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -330,6 +330,10 @@ if test ! -f ${EFI_HOME}/grub.cfg; then # there's no config in ESP, create one grub2-mkconfig -o ${EFI_HOME}/grub.cfg cp -a ${EFI_HOME}/grub.cfg ${EFI_HOME}/grub.cfg.rpmsave +fi + +# need to move grub.cfg to correct dir for major version upgrade +if ! grep -q "configfile" ${EFI_HOME}/grub.cfg; then cp -a ${EFI_HOME}/grub.cfg ${GRUB_HOME}/ fi @@ -524,9 +528,13 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog -* Thu Jun 13 2024 Eduard Abdullin - 2.06-80.alma.1 +* Tue Sep 03 2024 Eduard Abdullin - 2.06-82.alma.1 - Debrand for AlmaLinux +* Tue Jun 25 2024 Marta Lewandowska - 2.06-81 +- grub.cfg: Fix an issue when doing a major version upgrade +- Resolves: #RHEL-45008 + * Tue May 28 2024 Nicolas Frayer - 2.06-80 - Added more code for the previous CVE fix - Related: #RHEL-36249