On Wed, Jul 27, 2022, at 12:13 PM, Patrick Dupre wrote:
OK, This is correct, but is is absolutely confusing !!! Same name 2 different files !
Are there both generated by grub2-mkconfig -o /boot/grub2/grub.cfg ? I do not think so, if I check the date of creation. How is generated /boot/grub2/grub.cfg ?
grub2-mkconfig creates /boot/grub2/grub.cfg
There's a script in grub2-common that creates /boot/efi/fedora/grub.cfg, hence the reinstallation instructions to delete it so it's properly recreated if accidentally stepped on:
https://fedoraproject.org/wiki/GRUB_2#Instructions_for_UEFI-based_systems
But ordinarily grub.cfg is static, you don't ever need to interact with it anymore. All the Fedora bootloader files are in /boot/loader/entries in BLS format. One file per kernel.