chiark / gitweb /
boot: efi - ignore .conf snippets starting with "auto-"
[elogind.git] / src / boot / efi / boot.c
index 1f2b6a7d6d16eb64ba072a6f5988a98aea0afa93..3f8140ebff0d30477258d2a997a68e33346a515d 100644 (file)
@@ -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)