CentOS7或RHEL7: Failed to set Mok

2019-11-06  本文已影响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

参考:

上一篇 下一篇

猜你喜欢

热点阅读