summaryrefslogtreecommitdiff
path: root/src/boot/efi/boot.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-02-28 12:21:25 +0100
committerKay Sievers <kay@vrfy.org>2015-03-01 13:16:10 +0100
commit9d3dec15ae8ac6153038c9b994e6c4fc22045180 (patch)
tree15fd13050576721a3ef21801217bea4608ab7f0e /src/boot/efi/boot.c
parentea1851b60c6023b62da61ea6dd15db5754d6388c (diff)
boot: efi - ignore .conf snippets starting with "auto-"
Diffstat (limited to 'src/boot/efi/boot.c')
-rw-r--r--src/boot/efi/boot.c3
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)