I’m trying to install Tumbleweed on a Dell Optiplex 7020 system that previously had OpenSuse Leap 15.0. During the installation, I get an error that says:
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: Function not implemented
/usr/sbin/grub2-install: error: efibootmgr failed to register the boot entry: Input/
output error.
I can boot into Tumbleweed on this machine if I use the installation media to select Tumbleweed. Opensuse Leap 15.0 also remains on the system, and I can boot into it through Grub2. I won’t need Leap 15.0 any more once I get Tumbleweed working properly. I’ve had a few versions of OpenSuse Leap on this machine, and I never had issues with Grub2. What can I do to configure Grub2 to boot Tumbleweed on this system?
The issue is with efibootmgr, not with grub2. You can run “grub2-install --verbose” which should print efibootmgr invocation and then call the same efibootmgr command adding several times "-v -v -v " to increase verbosity. Chances are it provides better diagnostic. Upload full output to https://susepaste.org
This will copy grub to ESP \EFI\opensuse (which it already did) and won’t add boot entry to firmware boot manager (which it already did not). So what exact difference will it make? If anything
grub2-install --removable
may work by copying grub into \EFI\Boot directory. Of course this will overwrite existing bootloader there, so one needs to have contingency plan how to restore old files.
I got Grub2 working for Tumbleweed. I reinstalled Tumbleweed and had it delete old Linux partitions since I don’t need the OpenSuse Leap versions that were still on the drive. I disabled the Update NVRAM option during the installation. I had to choose Grub2 instead of Grub2-EFI for Grub2 to load properly at startup. Thank you, everyone for helping.