Comment 31 for bug 1845289

Revision history for this message
Ivan Larionov (xeron-oskom) wrote :

Given that my patch fixes the issue for me means:

This works:

      grub_load_and_start_image(boot_image);
      grub_file_close (file);
      grub_loader_set (grub_chainloader_boot, grub_chainloader_unload, 0);

      return 0;

This doesn't:

      grub_file_close (file);
      grub_loader_set (grub_secureboot_chainloader_boot,
         grub_secureboot_chainloader_unload, 0);
      return 0;

I'm not that familiar with C but may be it has something to do with calling grub_file_close() before grub_loader_set()? I mean, hd0 is closed, will it work to call grub_load_and_start_image() later?