mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 23:21:22 +03:00
bootspec: rename type1 parsers to say "type1" explicitly in the name
This just got too confusing for me. With this change we'll now have _unified as common suffix for stuff loading unified kernels (i.e. type 1), and _type1 as common suffix for type1 entries. Just some renaming.
This commit is contained in:
parent
d486a0eaaa
commit
85e17916d3
@ -40,7 +40,7 @@ static void boot_entry_free(BootEntry *entry) {
|
||||
strv_free(entry->device_tree_overlay);
|
||||
}
|
||||
|
||||
static int boot_entry_load(
|
||||
static int boot_entry_load_type1(
|
||||
FILE *f,
|
||||
const char *root,
|
||||
const char *dir,
|
||||
@ -328,7 +328,7 @@ static int config_check_inode_relevant_and_unseen(BootConfig *config, int fd, co
|
||||
return true;
|
||||
}
|
||||
|
||||
static int boot_entries_find(
|
||||
static int boot_entries_find_type1(
|
||||
BootConfig *config,
|
||||
const char *root,
|
||||
const char *dir) {
|
||||
@ -378,7 +378,7 @@ static int boot_entries_find(
|
||||
if (!GREEDY_REALLOC0(config->entries, config->n_entries + 1))
|
||||
return log_oom();
|
||||
|
||||
r = boot_entry_load(f, root, dir, de->d_name, config->entries + config->n_entries);
|
||||
r = boot_entry_load_type1(f, root, dir, de->d_name, config->entries + config->n_entries);
|
||||
if (r < 0)
|
||||
continue;
|
||||
|
||||
@ -839,7 +839,7 @@ int boot_entries_load_config(
|
||||
return r;
|
||||
|
||||
p = strjoina(esp_path, "/loader/entries");
|
||||
r = boot_entries_find(config, esp_path, p);
|
||||
r = boot_entries_find_type1(config, esp_path, p);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
@ -851,7 +851,7 @@ int boot_entries_load_config(
|
||||
|
||||
if (xbootldr_path) {
|
||||
p = strjoina(xbootldr_path, "/loader/entries");
|
||||
r = boot_entries_find(config, xbootldr_path, p);
|
||||
r = boot_entries_find_type1(config, xbootldr_path, p);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user