安装8.4版本,提示bootlader setup errors: failed to prepare EFI boot using Grub on ‘/dev/nvme0n1p2’:unable to install the EFI boot loader on ‘/dev/nvme0n1′”
原因:检查安装日志,提示grub-install: waring :Cannot set EFI variable Boot0000
由于主板原来会记录efi variables 在原来的ssd里,如果没有这个参数就报错
解决办法:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --no-nvram --force-extra-removable
update-grub
添加参数--no-nvram --force-extra-removable