How to fix: grub.cfg is not loaded under uefi

I spend recently much time to find out why grub didn’t load the grub.cfg under UEFI.
The used distribution is ubuntu.

I found out that there are two pitfalls:

  1. The grub.cfg stub to load the the real grub.cfg is not installed. Run in this case grub-install with the right parameters again
  2. Some distributions like Ubuntu have a uefi name hardcoded in the grub loader. Means: if you use a different name as “ubuntu” for your uefi entry, the grub.cfg stub is not found.

Hope this helps to solve UEFI problems

Advertisements