rhboot / efibootmgr

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

invalid optional data length #5

Closed farwayer closed 10 years ago

farwayer commented 10 years ago

verbose output:

Boot0001* Arch Linux    HD(1,22,100fde,5ee5afd5-e917-4ea8-999d-84b04aed8c39)File(\EFI\archlinux\vmlinuz-linux-ck)(invalid optional data length)

optional data is something like:

initrd=/initramfs-linux.img root=PARTUUID=087e1626-ccc5-468a-ab8d-ca02f8f04d14 ro add_efi_memmap

optional_data_len = 190 boot->data_size = 332 load_option->file_path_list_length = 114 ((char )path - (char )load_option) = 28 path->length = 42

vathpela commented 10 years ago

So, it looks like you've got a malformed boot variable. What command line did you use to create it?

farwayer commented 10 years ago

efibootmgr -c -d /dev/sda -p 1 -l /EFI/archlinux/vmlinuz-linux -L "Arch Linux" -u "initrd=/EFI/archlinux/initramfs-linux.img root=PARTUUID=2bd1703d-85d6-4ab4-b7d9-d7a0e62c7f07 ro add_efi_memmap"

However entry is working correct.

farwayer commented 10 years ago

Default entries also throws this error:

Hard Drive  BIOS(2,0,00)(invalid optional data length)

I have EFI v2.31 by American Megatrends.

vathpela commented 10 years ago

Commit cadc90a7ef should fix this issue. Thanks!