FS#31107 - [efibootmgr] can't find EFI variables

Attached to Project: Arch Linux
Opened by Zhehao Mao (zhehao) - Saturday, 11 August 2012, 21:20 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 13 August 2012, 17:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When trying to install grub on EFI-based systems, efibootmgr errors out, saying that it can't find the EFI variables in sysfs or procfs and suggests to modprobe the efivars module. The problem is that efibootmgr is looking for the efi variables in /sys/firmware/efi/vars and /proc/efi/vars. However, after running "modprobe efivars", the only directory created is /sys/modules/efivars. Is the kernel module exhibiting the correct behavior and efibootmgr is just looking in the wrong place, or is the module actually not exporting the efi variables. I've looked through efivars.c on the 3.4.8 branch of the Linux kernel and it seems to be exporting /sys/firmware/efi/vars. So why is it not doing this in Arch?

Additional info:
efibootmgr 0.5.4
linux 3.4.8


Steps to reproduce:
modprobe efivars
efibootmgr -v
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 13 August 2012, 17:45 GMT
Reason for closing:  Not a bug
Comment by Fremiet Lara (fremiet) - Sunday, 12 August 2012, 19:19 GMT
Are you sure you did not boot with BIOS when you tried efibootmgr?


https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#efibootmgr

efibootmgr command will work only if you have booted the system in UEFI mode itself, since it requires access to UEFI Runtime Variables which are available only in UEFI boot mode (with "noefi" kernel parameter NOT being used). Otherwise the message Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables is shown.
Comment by Fremiet Lara (fremiet) - Monday, 13 August 2012, 04:16 GMT
Comment by Zhehao Mao (zhehao) - Monday, 13 August 2012, 15:11 GMT
Yeah, sorry, I was booting from a bios installation on a live USB. I tried it after installing on the Macbook with EFI and it works.

Loading...