Originally Posted by
oldfred
This seems to be getting closer to the underlying issue. That bug report references a grub.cfg file located in the EFI directory (i.e. /boot/efi/EFI/ubuntu/grub.cfg). When I setup grub, there was no grub.cfg file in /boot/efi/EFI/ubuntu/, only the grubx64.efi and shimx64.efi files. The only grub.cfg file I could find is the normal primary one located at /boot/grub/grub.cfg.
Thus, I crafted a workaround by manually creating a new grub.cfg file in /boot/efi/EFI/ubuntu/ with the following content:
Code:
set prefix='(md/0)/boot/grub'
set root='(md/0)'
configfile /boot/grub/grub.cfg
This grub.cfg file just serves to bootstrap the loading of the main grub.cfg file located at /boot/grub/grub.cfg.
This seems to solve the problem, although I have no idea why it didn't work be default during the initial grub install or subsequent re-installs. It seems that the grub executable is looking for a grub.cfg file in EFI directory, but the grub installer, etc is not creating this file by default. I don't know if this is a bug in the installer, or something strange about this particular setup.
On my other EFI systems, there also doesn't seem to be a grub.cfg file in the /boot/efi/EFI/ubuntu/ directories, just the grubx64.efi executable. But none of those systems use secure boot or raid, so maybe this only affects secure boot and/or raid systems? I assume the grub executable on those other systems knows to load the /boot/grub/grub.cfg by default, instead of looking for a grub.cfg file in the EFI directory.
Anyone with insight into this? Should I file a bug report against grub?
Bookmarks