diff options
author | Spencer Michaels <sxmichaels@gmail.com> | 2019-11-05 19:56:05 -0800 |
---|---|---|
committer | Spencer Michaels <sxmichaels@gmail.com> | 2019-11-18 22:59:51 -0800 |
commit | 65901c0fd164bdcf248f7c0317342c4f3fb761b7 (patch) | |
tree | 50a06a6c43b6ba78ce380369418daa0f078fc5a1 /src/boot/efi | |
parent | 7fa23ab646a02c7299ff8257cb104ad8f83eda70 (diff) | |
download | systemd-65901c0fd164bdcf248f7c0317342c4f3fb761b7.tar.gz |
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).
Diffstat (limited to 'src/boot/efi')
-rw-r--r-- | src/boot/efi/boot.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |