On Dec 9, 2024, at 06:07, Ranjan Maitra via users <[email protected]> wrote: > # # for efi-based systems: # > > sudo bash -x grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Ack! Burn these instructions from your memory, this is the wrong path and can leave your system unable to update kernels! On any supported release of Fedora, the file you are overwriting with ‘grub2-mkconfig’ should be /boot/grub2/grub.cfg. The file in EFI is a smaller file that just discovers /boot and loads the correct grub.cfg from there. If you discover you’ve run the above command, you can regenerate the correct file by deleting the file you generated in EFI and running “dnf reinstall grub2-common” to force it to recreate it. Many releases ago, it was fine to rewrite that path but not anymore. A lot of dumb AI tools were trained on out of date info and still tell people to use it, much to my consternation. -- Jonathan Billings -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
