I have CentOS 7 x64 installed in a VMware virtual machine with UEFI firmware. When I try to reinstall GRUB (I need to have that automated) using grub2-install, the result is an unbootable machine that gets to grub prompt. It looks as it can't find grub.cfg though it is there.
What I do is issue grub2-install both w/o arguments and in the form
Code: Select all
grub2-install --target=x86_64-efi --bootloader-id=centos --efi-directory=/boot/efi --recheck --verbose /dev/sda
I've also noticed that /boot/efi/EFI/centos contains shim.efi and grubx64.efi, the first being the default boot option before reinstall, the second - after that.
I have tried booting from the old shim.efi from UEFI menu but the result is still the same (though it hasn't been recreated by grub2-install).
Am I missing something?