Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/boot/efi/EFI/redhat/grub.cfg incorrectly being updated on EL9 #107

Open
hbarina opened this issue Dec 20, 2024 · 1 comment · May be fixed by #108 or toadstule/puppet-augeasproviders_grub#1
Open
Labels
bug Something isn't working

Comments

@hbarina
Copy link

hbarina commented Dec 20, 2024

Affected Puppet, Ruby, OS and module versions/distributions

  • Distribution: RedHat Linux 9
  • Module version: all up to 5.1.2

How to reproduce (e.g Puppet code you use)

Just need to make a change to one of the kernel_parameter resources to generate a new grub.cfg.

What are you seeing

/boot/efi/EFI/redhat/grub.cfg with the output of grub2-mkconfig

What behaviour did you expect instead

/boot/efi/EFI/redhat/grub.cfg should be the stub installed from grub2-common rpm

Any additional information you'd like to impart

On redhat systems, augeasproviders_grub will always update /boot/efi/EFI/redhat/grub.cfg with the output of grub2-mkconfig when there are changes. For systems greater than EL9, this causes problems. This file should be a stub refering to files in /boot/grub2 which enables it to use /boot/grub2/grub.cfg. This is regardless of whether the system is booting in BIOS or EFI mode.

Without this stub, grub environments no longer works. For example tuned updates to cmdline options no longer work.

I will create a pull request here for the workaround we are currently using.

Refs:

That file being updated was pointed out by a support call we opened with redhat on "tuned not updating cmdline parameters". The reason for this change they pointed out is: How to configure Grub2 to be able to boot alternatively on UEFI or BIOS mode (you need redhat support access).

@toadstule
Copy link

+1

We've experienced this same issue and have had to manually correct our /boot/efi/EFI/almalinux/grub.cfg files that were overwritten.

@kenyon kenyon changed the title /boot/efi/EFI/redhat/grub.cfg incorrectly being updated on EL9 /boot/efi/EFI/redhat/grub.cfg incorrectly being updated on EL9 Feb 5, 2025
@kenyon kenyon added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants