]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Ignore EFISTUB binaries starting with "auto-".
authorSpencer Michaels <sxmichaels@gmail.com>
Wed, 6 Nov 2019 03:56:05 +0000 (19:56 -0800)
committerSpencer Michaels <sxmichaels@gmail.com>
Tue, 19 Nov 2019 06:59:51 +0000 (22:59 -0800)
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

index 217dfbad164b2f91baed57a9c3393f8a5f663c90..39bad10eee7454c01e6faaea4214ea68960e4484 100644 (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);