Hi,
I'm installing Gentoo on a a new HP Pavilion laptop, and I can't get it to boot without doing "weird stuff". It came with Windows 11 pre-installed, and I got rid of it clearing the entire HD (now I'm thinking that was a bad move

). Then, I made a new ESP partition, swap, etc, and installed Gentoo. For booting I installed rEFInd following Gentoo's wiki. Running "refind-install" went smoothly, but when I restarted I got a BIOS/UEFI screen stating "Boot Device Not Found". However, if I press F9 to "select a boot device", there I can choose "Boot From EFI File", which allows me to "Select a File System" (there is only one), and that leads to a "File Explorer" in which I can navigate my ESP partition to choose the file "refind_x64.efi", which eventually starts up rEFInd and I can boot Gentoo.
Inside Gentoo, if I run
efibootmgr -v I get
Code: Select all
No BootOrder is set; firmware will atempt recovery
Bot00000* Windows Boot Manager HD....
(a single entry for Windows...which is no even there anymore)
I then tried
Code: Select all
efibootmgr -c -g -d /dev/nmve0n1 -w -L "Gentoo" -l \\EFI\\refind\\refindx64.efi
following
https://bbs.archlinux.org/viewtopic.php?id=151297 (which looked like a similar issue). After doing that, when I run
efibootmgr -v I can see a new entry, "Boot0001* rEFInd", which should be fine. However, when I restart I still get the "Boot Device Not Found", and when I enter Gentoo again
efibootmgr -v shows the exact same output as before adding the new entry (i.e., it seems the entry for rEFInd was forgotten).
Any clues?