Skip to contentSkip to conversation

ELF check: GRUB_ERR_BAD_FILE_TYPE vs. GRUB_ERR_BAD_OS

DISCUSSION Andrei Borzenkov 2 participants 2 messages Jul 24, 2015 – Jul 25, 2015

lore
Share & tools
lore
#0 lore raw

There are two places using GRUB_ERR_BAD_FILE_TYPE and other are using GRUB_ERR_BAD_OS when EFL class check fails. I am not sure about exact semantics of either but probably they should be the same?

#1 lore raw
Quoted 4 lines · Andrei Borzenkov

There are two places using GRUB_ERR_BAD_FILE_TYPE and other are using GRUB_ERR_BAD_OS when EFL class check fails. I am not sure about exact semantics of either but probably they should be the same?

BAD_FILE_TYPE is only for errors like EISDIR and ENODIR. BAD_OS should be used for invalid ELF contents or BAD_MODULE if elf code is primarily meant to load GRUB-shipped ELFs.

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel