mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
boot: Make EFISTUB IDs use binaries' filenames.
Change config_entry_add_linux() so that Linux EFISTUB entries' ids are simply the binaries' filenames, as is already the case with loader configs. This guarantees that EFISTUB binaries' IDs are mutually unique.
This commit is contained in:
parent
b12a67ae14
commit
7fa23ab646
@ -1965,12 +1965,11 @@ static VOID config_entry_add_linux(
|
||||
}
|
||||
|
||||
if (os_name && os_id && (os_version || os_build)) {
|
||||
_cleanup_freepool_ CHAR16 *conf = NULL, *path = NULL;
|
||||
_cleanup_freepool_ CHAR16 *path = NULL;
|
||||
|
||||
conf = PoolPrint(L"%s-%s", os_id, os_version ? : os_build);
|
||||
path = PoolPrint(L"\\EFI\\Linux\\%s", f->FileName);
|
||||
|
||||
entry = config_entry_add_loader(config, device, LOADER_LINUX, conf, 'l', os_name, path);
|
||||
entry = config_entry_add_loader(config, device, LOADER_LINUX, f->FileName, 'l', os_name, path);
|
||||
|
||||
FreePool(content);
|
||||
content = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user