From Bios to UEFI - is this still the right command?

Hi, I’m referring to this Red Hat article: https://www.redhat.com/en/blog/bios-uefi. In the middle, it says:

Next, reinstall the GRUB boot loader. If you’re on a more recent version of grub, instead of using grub2-install… please use dnf reinstall shim-* grub2-efi-* instead

Since it says a “more recent version”, but the article is 4 years old, I’d like to ask if the command dnf reinstall shim-* grub2-efi-* is still to be used with Fedora 42b, or if there’s already even a newer one.

Very much so.

If you run grub2-install on a system booted in UEFI mode, it will return an error saying you can’t do that. This is special for Fedora and may not apply to other distributions.

Follow Fedora documentation:

To install grub2: The GRUB2 Bootloader – Installation and Configuration :: Fedora Docs
to (re-)create a grub2 configuration: The GRUB2 Bootloader – Installation and Configuration :: Fedora Docs

Wow, thank you gentlemen! To practice first, I’m installing Fedora on a GPT drive but with Bios in a VM right now :slight_smile: