From 65901c0fd164bdcf248f7c0317342c4f3fb761b7 Mon Sep 17 00:00:00 2001 From: Spencer Michaels Date: Tue, 5 Nov 2019 19:56:05 -0800 Subject: [PATCH] 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). --- src/boot/efi/boot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 217dfbad16..39bad10eee 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -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);