summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-05-11 13:00:00 +0200
committerJan Janssen <medhefgo@web.de>2022-05-22 12:48:10 +0200
commit9287b661c54eccd162cf3ee3c7032c88c0e95c58 (patch)
tree69f189594af62d4d427390027823419783cbebca /src
parentboot: Remove trivial config entry add helpers (diff)
downloadsystemd-9287b661c54eccd162cf3ee3c7032c88c0e95c58.tar.xz
systemd-9287b661c54eccd162cf3ee3c7032c88c0e95c58.zip
boot: Rename functions adding entries to match userspace
Diffstat (limited to 'src')
-rw-r--r--src/boot/efi/boot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 5a1192cc9f..c9ee403c67 100644
--- a/src/boot/efi/boot.c
+++ b/src/boot/efi/boot.c
@@ -1421,7 +1421,7 @@ static void config_entry_bump_counters(ConfigEntry *entry, EFI_FILE *root_dir) {
}
}
-static void config_entry_add_from_file(
+static void config_entry_add_type1(
Config *config,
EFI_HANDLE *device,
EFI_FILE *root_dir,
@@ -1652,7 +1652,7 @@ static void config_load_entries(
err = file_read(entries_dir, f->FileName, 0, 0, &content, NULL);
if (!EFI_ERROR(err))
- config_entry_add_from_file(config, device, root_dir, L"\\loader\\entries", f->FileName, content, loaded_image_path);
+ config_entry_add_type1(config, device, root_dir, L"\\loader\\entries", f->FileName, content, loaded_image_path);
}
}
@@ -2065,7 +2065,7 @@ static void config_entry_add_windows(Config *config, EFI_HANDLE *device, EFI_FIL
#endif
}
-static void config_entry_add_linux(
+static void config_entry_add_unified(
Config *config,
EFI_HANDLE *device,
EFI_FILE *root_dir) {
@@ -2245,7 +2245,7 @@ static void config_load_xbootldr(
if (EFI_ERROR(err))
return;
- config_entry_add_linux(config, new_device, root_dir);
+ config_entry_add_unified(config, new_device, root_dir);
config_load_entries(config, new_device, root_dir, NULL);
}
@@ -2523,7 +2523,7 @@ static void config_load_all_entries(
config_load_defaults(config, root_dir);
/* scan /EFI/Linux/ directory */
- config_entry_add_linux(config, loaded_image->DeviceHandle, root_dir);
+ config_entry_add_unified(config, loaded_image->DeviceHandle, root_dir);
/* scan /loader/entries/\*.conf files */
config_load_entries(config, loaded_image->DeviceHandle, root_dir, loaded_image_path);