rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
514 stars 97 forks source link

efibootmgr can't do anything other than removing entries and changing boot order. #95

Closed sirikid closed 5 years ago

sirikid commented 6 years ago

Whenever I try to create an entry, I get this message:

>efibootmgr -v -v -c ...
Could not prepare Boot variable: No such file or directory
error trace:
 util.h:323 get_file(): could not open file "/sys/devices/pci0000:00/firmware_node/uid" for reading: No such file or directory
 linux.c:436 device_get(): parsing pci failed: No such file or directory
 creator.c:194 efi_va_generate_file_device_path_from_esp(): could not get ESP disk info: No such file or directory
 creator.c:340 efi_generate_file_device_path_from_esp(): could not generate File DP from ESP: No such file or directory
 efibootmgr.c:287 make_var(): make_linux_load_option() failed: No such file or directory
 efibootmgr.c:336 make_var(): Could not set variable: No such file or directory

Actually, there is no such file as uid in /sys/devices/pci0000:00/firmware_node/, but whose fault is it?

>ls -1 /sys/devices/pci0000:00/firmware_node/
adr
device:08
device:09
device:1d
device:1e
device:1f
device:2e
device:3a
device:12
device:13
device:14
device:15
device:16
device:17
hid
LNXPOWER:01
LNXPOWER:02
LNXVIDEO:00
modalias
path
physical_node -> ../../../pci0000:00
power
subsystem -> ../../../../bus/acpi
uevent

Also, I updated the BIOS to the latest version as in #73 and it had no effect.

Any ideas?

laci200270 commented 5 years ago

Same error on ThinkPad T430 previously worked, don't know what chnaged since, os: Gentoo

ryanofsky commented 5 years ago

I think this is the same issue as https://github.com/rhboot/efivar/issues/120. Downgrading from sys-libs/efivar-36 to sys-libs/efivar-35 on gentoo seemed to fix it for me.

sirikid commented 5 years ago

Errors disappeared, probably after efibootmgr or kernel update.