代码拉取完成,页面将自动刷新
Curnel=`uname -r`
if [[ `sudo sed -n '/^menuentry/,/}/p;' /boot/efi/EFI/fedora/grub.cfg | sed '/}/q' | grep $Curnel` == '' ]];then
printf "You are not on the latest kernel!\n"
printf "Do you wish to proceed?\n"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit;;
esac
done
fi
printf "Signing nvidia modules...\n"
openssl req -new -x509 -newkey rsa:2048 -keyout ~/MOK.priv -outform DER -out ~/MOK.der -nodes -days 36500 -subj "/CN=`groups | xargs -n 1 | tail -n +1 | head -n 1`/"
sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ~/MOK.priv ~/MOK.der $(modinfo -n nvidia)
sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ~/MOK.priv ~/MOK.der $(modinfo -n nvidia_drm)
sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ~/MOK.priv ~/MOK.der $(modinfo -n nvidia_modeset)
sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ~/MOK.priv ~/MOK.der $(modinfo -n nvidia_uvm)
printf "Enter the password to enroll MOK.\n"
sudo mokutil --import ~/MOK.der
printf "Please reboot to finish the process with MOK."
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。