mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-10-04 15:28:41 +00:00
Pass parameters correctly when booting.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
8807e36aae
commit
40cf2a423d
@ -626,6 +626,14 @@ try_start_first_option(EFI_HANDLE parent_image_handle)
|
||||
uefi_call_wrapper(BS->Stall, 1, 2000000);
|
||||
return rc;
|
||||
}
|
||||
|
||||
EFI_LOADED_IMAGE *image;
|
||||
rc = uefi_call_wrapper(BS->HandleProtocol, 3, image_handle, &LoadedImageProtocol, (void *)&image);
|
||||
if (!EFI_ERROR(rc)) {
|
||||
image->LoadOptions = first_new_option_args;
|
||||
image->LoadOptionsSize = first_new_option_size;
|
||||
}
|
||||
|
||||
rc = uefi_call_wrapper(BS->StartImage, 3, image_handle, NULL, NULL);
|
||||
if (EFI_ERROR(rc)) {
|
||||
Print(L"StartImage failed: %d\n", rc);
|
||||
|
Loading…
Reference in New Issue
Block a user