I am currently trying to install openSUSE leap 15.3 to my lenovo idepad s130, but right when the installation with yast is about to finish, i get this error:
Execution of command “”/usr/sbin/grub2-install","–target=x86_64-efi","–force","–skip-fs-probe"]]" failed.
Exit code: 1
Error output: installing for x86_64-efi platform.
Could not prepare Boot variable: Success
/usr/sbin/grub2-install: error: efibootmgr failed to register the boot entry: Input/output error.
I have tried the enabling/disabling the options for “booting” in yast in all combinations (Secure Boot, Trusted Boot, Update NVRAM), looked at the bios settings (UEFI-Mode etc), have tried a different USB and installing the same iso in a virtual machine (worked fine). I have also tried installing via live image, but it did not seem to recognize my hard drive, since no automatic partitioning was availavle/no disk could be selected. The disk built in is a 64 GB eMMC; i was made aware of this efivars bug elsewhere: https://bugzilla.redhat.com/show_bug.cgi?id=1826864 maybe it has something to do with this?
Unfortunately, i am not that technologically gifted/capable; does anyone here know what may be the problem?
Even the robust ASRock Z170 Pro4S of one of my systems needs a reset every few years. I got puzzling behavior a few days ago. “Load Optimized Defaults” made the board great again. Try that with your system. If that doesn’t help tinkering may be required. The following worked for me when switching
from tradional BIOS to UEFI:
efibootmgr --create --disk /dev/sda --part 1 --label test --loader /EFI/opensuse/grubx64.efi
You may need to adjust command parameters according to your system values.