Correct way to update grub boot entries

Hi all,

I recently installed Fedora 40 KDE Spin, and set up a dual-boot configuration with Windows 11 using the Fedora Media Writer. This was installed using EFI.

So far everything’s good, however I noticed that neither kernel updates nor Grub Customiser changed the grub entries. I checked similar discussions and couldn’t find solutions to permanently resolve the issue, namely using:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

I then saw a video from a popular Linux youtuber who ran into the same issues trying to customise the grub bootloader, until he ran the command:

sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Which also solved the issue for me, though today a new kernel update came and that didn’t update the grub entries, so just wondering what the issue might be since the grub.cfg file in EFI doesn’t seem to update?

For reference I followed the docs from 2022 which said to delete both grub.cfgs from EFI and boot, but after both files regenerated Fedora went past the grub bootloader and straight into Fedora, so Windows wasn’t being picked up. Would appreciate any in-depth explanations to understand the technicalities, as well as a solution for this. Happy to give more info too.

Thank you!

2 Likes