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
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
|
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
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.