>From a187b4c082d88ebe60c90916d6db5f92fe521c43 Mon Sep 17 00:00:00 2001 From: Giovanni Santini
Date: Fri, 9 Dec 2016 14:38:43 +0100 Subject: [PATCH] Debugging GRUB Changes done: - Add error information to EFI chainloader command - Changing EFI file loading parameters --- grub-core/loader/efi/chainloader.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c index 522a716..2a44462 100644 --- a/grub-core/loader/efi/chainloader.c +++ b/grub-core/loader/efi/chainloader.c @@ -327,14 +327,18 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)), #endif status = efi_call_6 (b->load_image, 0, grub_efi_image_handle, file_path, - boot_image, size, + 0, 0, &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"); + grub_error ( + GRUB_ERR_BAD_OS, + "cannot load image: %08" PRIxGRUB_UINT64_T, + (grub_int64_t) status + ); goto fail; } -- 2.10.2