[CentOS] Re-enable grub boot in UEFI (Windows took over it)

Mon Feb 5 20:10:52 UTC 2018
Chris Murphy <lists at colorremedies.com>

On Mon, Feb 5, 2018 at 8:27 AM, Kay Diederichs
<kay.diederichs at uni-konstanz.de> wrote:

> grub-install /dev/nvme0n1


Running this on computers with UEFI firmware is not good advice, it's
an obsolete command. People should use the prebaked grubx64.efi binary
that comes in the grub2-efi package, and is a signed binary so it can
support UEFI Secure Boot.

If you run grub2-install, a new unsigned grub binary is created,
replacing grubx64.efi. If you have Secure Boot enabled, you will not
be able to boot, until you either reinstall the grub2-efi package (or
you self-sign the grub2-install created binary and then go through the
process of informing the firmware this is a valid binary by using
mokutil - but I estimate maybe 1 in 50 people might do this).




-- 
Chris Murphy