See https://github.com/hercules-team/augeasproviders_grub/issues/52#issuecomment-734251681
This patch expresses basically what I think should happen, but I don't know why it's not removing the parameter from GRUB_CMDLINE_LINUX_DEFAULT
. Could use some help with this.
Replacing these may break OS update mechanisms which only update
the main file.
Fixes #51
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.
Fixed #107