boot: Ignore EFISTUB binaries starting with "auto-".

To further increase similarity with loader configs and provide global
uniqueness, ignore filenames starting with auto- (see boot.c:1512).
This commit is contained in:
Spencer Michaels 2019-11-05 19:56:05 -08:00
parent 7fa23ab646
commit 65901c0fd1

View file

@ -1927,6 +1927,8 @@ static VOID config_entry_add_linux(
continue;
if (StriCmp(f->FileName + len - 4, L".efi") != 0)
continue;
if (StrnCmp(f->FileName, L"auto-", 5) == 0)
continue;
/* look for .osrel and .cmdline sections in the .efi binary */
err = pe_file_locate_sections(linux_dir, f->FileName, sections, addrs, offs, szs);