Quote:
Originally Posted by shep
I renamed BOOTX64.EFI from OpenBSD to BSD_BOOTX64.EFI and copied it over to Debian /boot/efi/.
|
You can keep OpenBSD's BOOTX64.EFI loader in the original location and use this instead:
Code:
menuentry 'OpenBSD' {
set root='hd0,gpt1'
chainloader EFI/BOOT/BOOTX64.EFI
}
^ If that is saved as /boot/grub/custom.cfg then there is no need to run `update-grub` afterwards, it will be sourced automatically by Debian's standard grub.cfg
The only caveat here is that some defective UEFI implementations will boot $ESP/EFI/BOOT/BOOTX64.EFI automatically even if Debian's GRUB creates NVRAM entries instructing the motherboard to do otherwise, in that case moving BOOTX64.EFI will be necessary to load GRUB's menu.
I find the insmod commands unnecessary, GRUB loads the modules automatically.
Note that OpenBSD will default to a UEFI installation if a GPT disk is used and will install a non-UEFI system to an msdos disk.