CentOS7 not booting after “yum update” mokListRT fails

bootcentos7grub2

I updated CentOS 7 via yum update

Didn't know about shim and mokutils so didn't exclude that from yum.

Now I can't boot it, I can recover the files on it using another live distro (e.g. ubuntu), but when I try to run the rescue mode from a CentOS USB key it gives me the same error:

Failed to set MokListRT: Invalid Parameter
Something has gone seriously wrong: import_mok_state()
failed: Invalid Parameter

Typical solution found is to:

cp grubx64.efi shimx64.efi

But the folder in which this file should be ( /boot/efi/EFI/centos ) is completely empty (actually, /boot is empty itself, like not even grub is installed)

Anything else that I can try?

I can at least retrieve the files… but nothing more than that.

Best Answer

As noted in the CentOS bug report, this was fixed with the following updates:

mokutil.x86_64 15-2.el7.centos updates
shim-ia32.x86_64 15-2.el7.centos updates
shim-unsigned-ia32.x86_64 15-2.el7.centos updates
shim-unsigned-x64.x86_64 15-2.el7.centos updates
shim-x64.x86_64 15-2.el7.centos updates