sorry for the probable bad choice of topic name, but I don’t know how else to express it.
I have the following situation: Installed Tumbleweed on my x270 switched to Legacy Boot mode. I forced Grub2 EFI to be installed, however, it still tried to install the i386 version.
So, now I have a system running in UEFI secure-boot mode after manually running grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=opensuse from the rescue system.
Whenever I perform a kernel update, it goes back to a non-working grub2 setup, so I either have to remember to manually run the command after the update, or take a trip to the rescue system.
So, my question is, where is the config file, I need to fix to make the proper settings stick?
OK, let’s step back. If your computer is configured for EFI boot, even if you run grub2-install for i386-pc it does not really change anything - it will simply write boot block, but that will not affect EFI boot in any way. Conversely, if your computer is set to attempt legacy boot first, running your command after BIOS grub2 is already installed also will not change anything - BIOS grub2 remains where it was, it is not deleted.
So please describe from the very beginning step by step - what happens when your computer boots and what you see.
Ok, I’ve checked it through.
It seems just doing it once inside the rescue system was enough to get it working properly from that point on.
I’ve had troubles with a past installation and so I just tried avoiding the situation too much.
Anyhow, it is resolved and you are right.
It suffices to choose grub-efi during installation, then fix it once in the rescue system and when new kernel updates, etc. arrive, it works properly.