help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB can't chainload Windows under Secure Boot


From: Andrei Borzenkov
Subject: Re: GRUB can't chainload Windows under Secure Boot
Date: Fri, 9 Dec 2016 18:55:56 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]