美文网首页
CentOS7或RHEL7: Failed to set Mok

CentOS7或RHEL7: Failed to set Mok

作者: 橘子基因 | 来源:发表于2019-11-06 19:34 被阅读0次

服务器无法开机,开机报如下错:

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

首先,准备一个低于当前版本的centos或者rhel的镜像刻录到U盘(我报错的是rhel7.7,用的rhel7.6),将服务器设置为U盘启动。
从U盘启动后,选择Troubleshooting,然后按1继续。

输入chroot /mnt/sysimage,然后输入一下命令:

cd /boot/efi/EFI/centos
#如果是rhel则为cd /boot/efi/EFI/rhel
cp grubx64.efi shimx64.efi
exit
reboot

重启。

顺利进入系统之后,从更新中排除Shim和Mokutil。

echo 'exclude=shim*,mokutil*' >> /etc/yum.conf
yum update

参考:

相关文章

网友评论

      本文标题:CentOS7或RHEL7: Failed to set Mok

      本文链接:https://www.haomeiwen.com/subject/hrlpbctx.html