rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
519 stars 99 forks source link

-e 3 or --full-dev-path not work #215

Open jpka- opened 2 months ago

jpka- commented 2 months ago

Hello. I have exactly same trouble as in #86, i need PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,GPT,... string, instead of HD(1,GPT,.. one. But suggested -e 3 not work:

efibootmgr -v --create -e 3 -d /dev/sda --part 1 -L "Arch" -l /vmlinuz-linux -u "root=/dev/sda2 rw initrd=/initramfs-linux.img"
Could not prepare Boot variable: Invalid argument
error trace:
 creator.c:236 efi_va_generate_file_device_path_from_esp(): Device must use File() or HD() device path: Invalid argument
 creator.c:335 efi_generate_file_device_path_from_esp(): could not generate File DP from ESP: Invalid argument
 efi.c:225 make_linux_load_option(): efi_generate_file_device_path_from_esp() = -1 (failed): Invalid argument
 efibootmgr.c:295 make_var(): make_linux_load_option() failed: Invalid argument
 efibootmgr.c:344 make_var(): Could not set variable: Invalid argument

I try to downgrade as deep as i can, for Archlinux it is: downgrading package efibootmgr (18-3 => 16-2), but no effect. I can't find version 15 anywhere, which expected to work as per #86. The hardware is EFI-only thin client, it booted fine with Arch installer usb disk. It not sees non-PciRoot strings.

eoli3n commented 1 month ago

all closed issues are from people themselves, devs doesn't give any attention to anybody here. Please learn C :rofl: