DNF system upgrade docs: grub reinstall query

The DNF system upgrade docs specify that you should reinstall grub after each Fedora release. In regards to this though, I have two issues:

  1. If I perform the actions specified in the documentation, I receive the following error:
$ sudo grub2-install /dev/sdb
grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
  1. In order to provide the missing script I have to install the package below:
$ sudo dnf install grub2-efi-x64-modules
  1. After the package is installed, I get:
$ sudo grub2-install /dev/sdb --efi-directory=/boot/efi
grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

So my question is, how do I re-install grub in this case? Secure boot is not enabled, however I am using UEFI. I did note the documentation shows grub2 using the i386 target, however that’s not my architecture and it defaults to x64-efi anyway

Do you mean this section Update GRUB bootloader on BIOS systems? This does not apply to UEFI.

In general, you do not need to do any manual steps regarding GRUB, for any Fedora updates.

so I did a bit of digging around on google and found the following:


which indicates that you only need to re-install shim-x64 and grub2-efi. They point to the GRUB2 page on the Fedora wiki, which contains the relevant information needed:


yeah that’s the section. I ignored the bit that said “on BIOS systems” I guess haha

1 Like

Yeah, reading some of those older threads seem to indicate that the user has to do manual things as part of the upgrades.

What most don’t seem to realize is that fedora automatically does everything needed and the user does not have to do anything manually (except in rare cases where something fails – which is when that information about updating grub becomes important.)