efi_loader: error message if BootOrder not defined
For booting via `bootefi bootmgr` it is necessary that the EFI variable BootOrder is defined. Provide a diagnostic message if the variable is missing. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
afd46c5f13
commit
33e44971a2
@ -184,8 +184,10 @@ void *efi_bootmgr_load(struct efi_device_path **device_path,
|
||||
rs = systab.runtime;
|
||||
|
||||
bootorder = get_var(L"BootOrder", &efi_global_variable_guid, &size);
|
||||
if (!bootorder)
|
||||
if (!bootorder) {
|
||||
printf("BootOrder not defined\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
num = size / sizeof(uint16_t);
|
||||
for (i = 0; i < num; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user