[BUG] grubport snippet breaks unified grub.cfg setup of CentOS Stream 9
Closed this issue · 1 comments
nomuranec commented
Describe the bug
grubport snippet modifies /boot/efi/EFI/redhat/grub.cfg. Modification is necessary on EFI system with older distros like RHEL7 and RHEL8. However since Fedora 34 and CentOS Stream 9, the file should not be modified as it becomes a step stone to the unified grub.cfg, i.e. /boot/grub2/grub.cfg.
To Reproduce
Steps to reproduce the behavior:
- Provision CentOS Stream 9 on a system
- Check /boot/efi/EFI/redhat/grub.cfg
Actual behavior
/boot/efi/EFI/redhat/grub.cfg contains actual boot entries or 'blscfg'.
Expected behavior
/boot/efi/EFI/redhat/grub.cfg should look something like this:
search --no-floppy --set prefix --file /boot/grub2/grub.cfg
set prefix=($prefix)/boot/grub2
configfile $prefix/grub.cfg
Additional context
About unified grub.cfg setup
https://fedoraproject.org/wiki/Changes/UnifyGrubConfig
StykMartin commented
Resolved by #148.