View Single Post
  #2   (View Single Post)  
Old 21st October 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bloaty McBloatFace
 
Join Date: Dec 2015
Location: London
Posts: 293
Default

Great guide, thanks for this!

A few points, if I may:
Quote:
Originally Posted by shep View Post
cp /usr/mdec/bootx64.efi to the drive. If you are installing to one of the
quirky laptops that uses bootx32.efi, copy that too.
I think the 32-bit loader is supposed to be called bootia32.efi (at least according to the UEFI standard).

Quote:
Originally Posted by shep View Post
Edit /etc/grub.d/40_custom

Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'NetBSD 9.2' {
         insmod part_gpt
         insmod search_fs_uuid
         insmod chain
         chainloader (hd0,gpt1)/bootx64.efi
}
If multiple drives are connected then the (hd0,gpt1) identifier might not be consistently correct.

I prefer to use this (replace $uuid with the actual UUID of the EFI system partition):
Code:
menuentry 'NetBSD' {
   search --fs-uuid --set=root $uuid
   chainloader /bootx64.efi
}
I've never needed to manually load GRUB modules. YMMV.

HTH.
__________________
Linux is for people who hate Windows. BSD is for people who love UNIX.
Reply With Quote