99-grub-mkconfig.install: Disable BLS and run grub2-mkconfig when GRUB_ENABLE_BLSCFG is disable

Resolves: #RHEL-86261

Signed-off-by: Marta Lewandowska <mlewando@redhat.com>
Reviewed-by: Leo Sandoval <lsandova@redhat.com>
This commit is contained in:
Marta Lewandowska 2024-11-27 11:03:43 -06:00 committed by Leo Sandoval
parent d23765b1e8
commit 5b54c60e8c
2 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,12 @@ if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
exit 0 exit 0
fi fi
# Run grub2-mkconfig if ENABLE_BLSCFG is false
if grep -s -q '^GRUB_ENABLE_BLSCFG="*false"*\s*$' /etc/default/grub; then
RUN_MKCONFIG=true
DISABLE_BLS=true
fi
# PV and PVH Xen DomU guests boot with pygrub that doesn't have BLS support, # PV and PVH Xen DomU guests boot with pygrub that doesn't have BLS support,
# also Xen Dom0 use the menuentries from 20_linux_xen and not the ones from # also Xen Dom0 use the menuentries from 20_linux_xen and not the ones from
# 10_linux. So BLS support needs to be disabled for both Xen Dom0 and DomU. # 10_linux. So BLS support needs to be disabled for both Xen Dom0 and DomU.

View File

@ -17,7 +17,7 @@
Name: grub2 Name: grub2
Epoch: 1 Epoch: 1
Version: 2.12 Version: 2.12
Release: 14%{?dist} Release: 15%{?dist}
Summary: Bootloader with support for Linux, Multiboot and more Summary: Bootloader with support for Linux, Multiboot and more
License: GPL-3.0-or-later License: GPL-3.0-or-later
URL: http://www.gnu.org/software/grub/ URL: http://www.gnu.org/software/grub/
@ -583,6 +583,10 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
%endif %endif
%changelog %changelog
* Mon Apr 7 2025 Marta Lewandowska <mlewando@redhat.com> - 2.12-15
- 99-grub-mkconfig.install: Disable BLS and run grub2-mkconfig when GRUB_ENABLE_BLSCFG is disable
- Resolves: #RHEL-86261
* Tue Mar 25 2025 Nicolas Frayer <nfrayer@redhat.com> 2.12-14 * Tue Mar 25 2025 Nicolas Frayer <nfrayer@redhat.com> 2.12-14
- ieee1275/ofnet: Fix grub_malloc() removed after added safe - ieee1275/ofnet: Fix grub_malloc() removed after added safe
- Related: #RHEL-80073 - Related: #RHEL-80073