bootspec: load entries from both the ESP and XBOOTLDR partitions

Let's simply search in both.
This commit is contained in:
Lennart Poettering
2019-03-01 12:41:32 +01:00
parent 9fc32cd9b3
commit a2f8664e9a
4 changed files with 50 additions and 34 deletions
+2 -2
View File
@@ -323,7 +323,7 @@ static int status_entries(const char *esp_path, sd_id128_t partition) {
_cleanup_(boot_config_free) BootConfig config = {};
int r;
r = boot_entries_load_config(esp_path, &config);
r = boot_entries_load_config(esp_path, NULL, &config);
if (r < 0)
return r;
@@ -1075,7 +1075,7 @@ static int verb_list(int argc, char *argv[], void *userdata) {
if (r < 0)
return r;
r = boot_entries_load_config(arg_path, &config);
r = boot_entries_load_config(arg_path, NULL, &config);
if (r < 0)
return r;