09.12.2016 18:31, Giovanni Santini пишет:
> Il 09/12/2016 04:41, Andrei Borzenkov ha scritto:
>> Edit grub-core/loader/efi/chainloader.c, print EFI status when loading
>> fails, then we at least know why it fails. This is in function
>> grub_cmd_chainloader, after call to b->load_image.
>>
>> status = efi_call_6 (b->load_image, 0, grub_efi_image_handle, file_path,
>> boot_image, size,
>> &image_handle);
>> if (status != GRUB_EFI_SUCCESS)
>> {
>> if (status == GRUB_EFI_OUT_OF_RESOURCES)
>> grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of resources");
>> else
>> grub_error (GRUB_ERR_BAD_OS, "cannot load image");
>>
>> goto fail;
>> }
>>
>> Change to
>>
>> grub_error (GRUB_ERROR_BAD_OS, "cannot load image: %08x", status)
>>
>>
>
> Line changed, the error code is
> 00000002
>
Sorry, it is 64 bit, please change it to
grub_error (GRUB_ERR_BAD_OS, "cannot load image: %08" PRIuGRUB_UINT64_T,
(grub_int64_t) status)
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub