From: Spencer Michaels Date: Wed, 6 Nov 2019 03:56:05 +0000 (-0800) Subject: boot: Ignore EFISTUB binaries starting with "auto-". X-Git-Tag: v245-rc1~313^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65901c0fd164bdcf248f7c0317342c4f3fb761b7;p=thirdparty%2Fsystemd.git 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). --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 217dfbad164..39bad10eee7 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);