On 2023-07-05 22:47, Wodel Youchi wrote:
Hi,
My system is configured to boot UEFI, and I did have a linux distribution which was booting fine. I am not using secure boot and I did disable secure boot while installing opensuse, I think it is not mandatory since it allowed my to disable it. What does not work : the system does not boot on opensuse. After verifying the /boot/efi/EFI/opensuse contains only this file : grubx64.efi that's it. My old linux efi directory contains multiple files : BOOTIA32.CSV, BOOTX64.CSV, gcdia32.efi, gcdx64.efi, grub.cfg, grubia32.efi, grub64.efi shim.efi, shim64.efi
So the problem is clear, but I am able to correct it for now.
I tried to boot with rescue mode then to chroot the / while mounting all the necessary directories like /dev, /sys, /proc and /run, I also mounted /boot and /boot/efi.
Then I tried to reinstall grub2 using :
grub2-install --efi-directory=/boot/efi --bootloader-id=opensuse --target=x86_64-efi /dev/nvme0n1
But I am getting this error : grub2-install error efibootmgr failed to register the boot entry : no such file or directory
Ok, the openSUSE trick for achieving that, is: you do the same things you do till your command above, but instead, you run "yast", typed exactly like that in a terminal. That will get you the text mode yast (running the graphical yast in a chroot is more difficult, I don't know the trick). In "system" you select "boot loader". Check that all the settings in all the tabs are correct (you can copy paste them here, it is text), and finally, in "bootloader options" tab, change "Timeout in Seconds" just one second up or down, then exit accepting all changes ([OK] button) Just changing the timeout forces YaST2 to write everything in the boot system to disk again. Why I don't know, but it is useful. Ah, the name in the boot menu and the name in "/boot/efi/EFI/" directory is selected in "/etc/default/grub" file, line: GRUB_DISTRIBUTOR="main-os" Remember to heed the comment on the first line of the file, then do the timeout trick for paranoia shake. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)