Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] System not booting into UEFI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
chubbypiper
n00b
n00b


Joined: 27 Jun 2018
Posts: 33

PostPosted: Thu Jul 08, 2021 3:55 am    Post subject: [SOLVED] System not booting into UEFI Reply with quote

I'm having some issues getting my system to boot into UEFI mode. I discovered this as I was attempting to get fwupd up and running, but it kept complaining about capsule updates not available/enabled, and that the firmware cannot be updatedin in legacy BIOS mode.

Realizing that /sys/firmware/efi didn't exist, I set about to get UEFI enabled. I booted into the admincd (admincd-amd64-20210630T214504Z.iso), mounted my hard drives, did the bind mounts, and ended up in a chroot with /sys/firmware/efi being populated. So I ran grub-install --efi-directory=/boot/ (/boot/ is my fat32 EFI partition, and it does have the esp flag), followed by grub-mkconfig -o /boot/grub/grub.cfg. At that time, it did mention installing the UEFI menu item.

However, after a reboot back into the normal system, I'm still not seeing /sys/firmware/efi existing, and efibootmgr -v reports "EFI variables are not supported on this system."

Is there something else I need to do in order to enable UEFI boot on my system?


Last edited by chubbypiper on Thu Jul 08, 2021 4:41 am; edited 1 time in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Thu Jul 08, 2021 4:01 am    Post subject: Reply with quote

Is your BIOS set to boot via UEFI?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
chubbypiper
n00b
n00b


Joined: 27 Jun 2018
Posts: 33

PostPosted: Thu Jul 08, 2021 4:31 am    Post subject: Reply with quote

Yes, it is set for UEFI, and when I pull up a boot menu, it lists it as UEFI.
Back to top
View user's profile Send private message
chubbypiper
n00b
n00b


Joined: 27 Jun 2018
Posts: 33

PostPosted: Thu Jul 08, 2021 4:41 am    Post subject: Reply with quote

I was thinking about this right after I posted my reply, I realized that as part of digging around on what the possible culprits would be that I hadn't checked my kernel config. A quick grep for EFI in /usr/src/linux/.config confirmed my fears. CONFIG_EFI_PARTITION was set to yes, but CONFIG_EFI was not set. Set it to y, rebuilt, and now I'm seeing /sys/firmware/efi, and fwupdmgr is able to see my BIOS info. Thanks for helping me think through it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum