ELF check: GRUB_ERR_BAD_FILE_TYPE vs. GRUB_ERR_BAD_OS
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?
Quoted 4 lines · Andrei Borzenkov
There are two places using
GRUB_ERR_BAD_FILE_TYPEand other are usingGRUB_ERR_BAD_OSwhen 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