You know what makes me angry? My servers not booting. I encountered this error after an update and reboot of CentOS 7:
Failed to set MokListRT: Invalid Parameter Something has gone seriously wrong: import_mok_state() failed: Invalid Parameter
So here is how you fix it.
Firstly, we need a CentoOS 7 ISO with the version of something like 1708 or 1707. Here is an archive of all the CentOS 7 releases. Thanks to Alexander Zubkov for commenting about the issue with the latest ISO.
Either burn a new CentOS 7 disc, make a boot flash drive, or insert the install ISO to your VM. Boot from the disc and once the menu shows up select the following: Advanced -> Rescue -> Troubleshooting -> Rescue media -> and press 1 when prompted.
In the terminal you should now have, run the following commands:
chroot /mnt/sysimage cd /boot/efi/EFI/centos cp grubx64.efi shimx64.efi exit reboot
You should be able to reboot into CentOS now. However, we still need to exclude an Shim and Mokutil from updates (shim-x64-12-2.el7.x86_64).
In a root terminal, run the following.
echo 'exclude=shim*,mokutil*' >> /etc/yum.conf yum update
You should be good to go now. If that does not work try copying CENTOS\GRUBX64.EFI over top of EFI\BOOTX64.EFI in your boot partition.
Another thing you can try is booting the Super Grub2 disk and booting GRUBX64 directly, or try emergency mode.
If you appreciate our content and would like to be notified when we post a new article, you can subscribe for notifications using this form: