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?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1845289

Title:
  Grub EFI amd64 no longer start EFI/Microsoft/Boot/bootmgfw.efi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1845289/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to