On Mon, Feb 29, 2016 at 11:19:57AM -0600, joshua stein wrote: > On Mon, 29 Feb 2016 at 15:19:24 +0100, Noth wrote: > > Hi misc@, > > > > I just cracked this and it doesn't seem to be well documented so I thought > > I'd stick it here. > > > > My setup is a VAIO laptop dualbooting Ubuntu 16.04 and OpenBSD -CURRENT. > > I've got sd0a setup as a cryptoraid partition, so I needed a way to > > chainload into the OBSD bootloader to get a prompt to decrypt the partition. > > FWIW, I use rEFInd to manage EFI booting between OpenBSD, Linux, and > FreeBSD on my laptop: > > http://www.rodsbooks.com/refind/ > > Just putting the OpenBSD bootx64.efi file into /efi/openbsd/ will > allow rEFInd to find it and show an OpenBSD logo on boot: > > https://i.imgur.com/y2PHRFu.jpg > > This way OpenBSD does not depend on grub and Linux can do whatever > it wants to the grub config without locking me out of OpenBSD. > rEFInd can be configured by editing the /efi/refind/refind.conf file > but by default it will automatically find things.
I'm also using refind for that purpose. Just make sure you copy the OpenBSD efi boot program to an other directory than /efi/boot as joshua suggested. Otherwise installers from other OSs will likely overwrite OpenBSD's efiboot. It would be nice if installboot(8) could do that: http://marc.info/?l=openbsd-tech&m=145396912725902&w=2 Remi