else if (r < 0)
log_warning_errno(r, "Failed to determine entries reported by boot loader, ignoring: %m");
else
- (void) boot_entries_augment_from_loader(&config, efi_entries, true);
+ (void) boot_entries_augment_from_loader(&config, efi_entries);
if (config.n_entries == 0)
log_info("No boot loader entries found.");
r = manager_read_efi_boot_loader_entries(m);
if (r >= 0)
- (void) boot_entries_augment_from_loader(&config, m->efi_boot_loader_entries, true);
+ (void) boot_entries_augment_from_loader(&config, m->efi_boot_loader_entries);
return boot_config_has_entry(&config, id);
}
r = manager_read_efi_boot_loader_entries(m);
if (r >= 0)
- (void) boot_entries_augment_from_loader(&config, m->efi_boot_loader_entries, true);
+ (void) boot_entries_augment_from_loader(&config, m->efi_boot_loader_entries);
r = sd_bus_message_open_container(reply, 'a', "s");
if (r < 0)
int boot_entries_augment_from_loader(
BootConfig *config,
- char **found_by_loader,
- bool only_auto) {
+ char **found_by_loader) {
static const char *const title_table[] = {
/* Pretty names for a few well-known automatically discovered entries. */
if (boot_config_has_entry(config, *i))
continue;
- if (only_auto && !startswith(*i, "auto-"))
+ /*
+ * consider the 'auto-' entries only, because the others
+ * ones are detected scanning the 'esp' and 'xbootldr'
+ * directories by boot_entries_load_config()
+ */
+ if (!startswith(*i, "auto-"))
continue;
c = strdup(*i);
void boot_config_free(BootConfig *config);
int boot_entries_load_config(const char *esp_path, const char *xbootldr_path, BootConfig *config);
int boot_entries_load_config_auto(const char *override_esp_path, const char *override_xbootldr_path, BootConfig *config);
-int boot_entries_augment_from_loader(BootConfig *config, char **list, bool only_auto);
+int boot_entries_augment_from_loader(BootConfig *config, char **list);
static inline const char* boot_entry_title(const BootEntry *entry) {
return entry->show_title ?: entry->title ?: entry->id;