Hi all, a strange thing happenened with my Lenovo laptop.
I have Windows10 and Fedora 37 in dual boot, all working fine for months in both systems. Recently, Lenovo VANTAGE software proposed a BIOS update of the machine. I was in Windows10 at the time, and allowed the update. It downloaded, rebooted, updated the BIOS version and rebooted again.
However, it booted straight into Windows, bypassing the GRUB interface.
So I checked the BIOS settings wondeing if the boot order misaligned, but no, there were the two options: NVME disk, Windows Boot Manager. NVME disk was the first one.
Then I decided to boot into fedora installation via a live usb using Super Grub2 Disk. I selected the fedora boot item, and it booted into GRUB2! From there I could select the Fedora version or Windows Boot Manager. I selected Fedora and it booted fine.
From there, I tried to use the official documentation to remove and reinstall grub2, creating a new grub2 config. It worked fine, but it did not solve my problem. GRUB2 was still not appearing. Then I tried to use efibootmgr but it fact it did not find the Fedora OS. the -c flag byitself did not work, it said can’t find boot entry…
Then I find some examples on the web of a more complete efibootmgr command, like:
$ sudo efibootmgr --create --disk=/dev/sda --part=1 --label="fedora" --loader='EFI\fedora\shimx64.efi'
found in this article, but I am unsure of how to use it and IF i have to use it. From what I understand it will create a boot option in the BIOS menu.
Anyway, my GRUB2 config seems correct as it detectes all the systems, Windows included, however it does not appear. The Fedora Documentation said that reinstalling grub should trigger the efibootmgr to do its thing but it is not working.