diff options
author | Kay Sievers <kay@vrfy.org> | 2015-02-28 12:21:25 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-03-01 13:16:10 +0100 |
commit | 9d3dec15ae8ac6153038c9b994e6c4fc22045180 (patch) | |
tree | 15fd13050576721a3ef21801217bea4608ab7f0e /src/boot/efi/boot.c | |
parent | ea1851b60c6023b62da61ea6dd15db5754d6388c (diff) |
boot: efi - ignore .conf snippets starting with "auto-"
Diffstat (limited to 'src/boot/efi/boot.c')
-rw-r--r-- | src/boot/efi/boot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 1f2b6a7d6d..3f8140ebff 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1171,11 +1171,14 @@ static VOID config_load(Config *config, EFI_HANDLE *device, EFI_FILE *root_dir, continue; if (f->Attribute & EFI_FILE_DIRECTORY) continue; + len = StrLen(f->FileName); if (len < 6) continue; if (StriCmp(f->FileName + len - 5, L".conf") != 0) continue; + if (StrnCmp(f->FileName, L"auto-", 5) == 0) + continue; len = file_read(entries_dir, f->FileName, 0, 0, &content); if (len > 0) |