-
-
Save dbfin/6733294 to your computer and use it in GitHub Desktop.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg |
For UEFI systems:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Refrain from using grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg going forward. This is a valid location on Fedora 33 and earlier. However on Fedora 34 and later, it is a small stub file that merely forwards to /boot/grub2/grub.cfg. See the [Reinstalling GRUB] (https://fedoraproject.org/wiki/GRUB_2#Reinstalling_GRUB) section if you have accidentally overwritten this file.
https://fedoraproject.org/wiki/GRUB_2
The GRUB configuration file is located at /boot/grub2/grub.cfg and is intended to be a static file that does not need updating. In case of disk replacement, or installation of another Linux distribution, /boot/grub2/grub.cfg should be updated. Use the following commands:
sudo grub2-mkconfig -o /etc/grub2.cfg
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
Actutally, for UEFI systems:
sudo grub2-mkconfig -o /etc/grub2-efi.cfg