> From: Colin Tree <[email protected]>
> Date: Tue, 2 Jun 2020 13:51:51 +1000
Bypassing the OpenBSD bootloader this way is not supported and will
almost certainly break at some point. And even when it appears to
work, you'll end up with a less secure system since grub doesn't
provide entropy to the kernel to properly do the early initialization
of the random number generator.
If you really need to use grub to boot OpenBSD on an UEFI system, look
(again) at the chainloader option. Apparently it can chainload an EFI
bootloader, so you should be able to use it with the BOOTX64.EFI that
comes with OpenBSD.
Alternatively use the built-in UEFI boot manager and add an option to
load OpenBSD. Admittedly OpenBSD doesn't offer any help setting this
up. But your Linux install should come with the necessary tools to do
this.
Cheers,
Mark
>
> Hi,
>
> Thanks for a great o/s and the work put in by your many developers.
>
> I'm an old fart, (60+yo), have been using Linux for 25 years and xxxxbsd
> for about 20 years.
>
> I am tending to OpenBSD for all it's many strengths and simplicity and
> getting away from systemd, etc.
>
> When some of my apps become available for BSD I'll be able to loose
> Linux (long ago lost my legacy Windows apps).
>
>
> Unfortunately installing multiboot has failed.
>
> Grub2 was released about a year ago, and now supports direct booting
> OpenBSD.
>
> Installation and use of OpenBSD is great, only marred by old advice on
> configuring grub. (makes it hard to use OpenBSD when it won't boot ;)
>
> Now that hard drives often exceed 2TB we will tend to use GPT for
> partitioning, with an EFI partition at gpt1, openbsd partition fits
> nicely as gpt2
>
> chainloader +1 has failed since going to a gpt disk and after a bit of
> learning I've put together a more correct way to use grub2.
>
> my grub.d/40_custom now looks like this
>
> menuentry "OpenBSD" {
> insmod part_gpt
> insmod part_bsd
> set root=(hd0,gpt2)
> echo 'Loading OpenBSD 6.7 ...'
> kopenbsd --root=sd0a /bsd
>
>
> 1st - keeping note of the disklabel where the / partion was
> installed, in my case sd0a
>
> 2nd - reboot to see what grub wants to call your partition
> # at the grub boot menu,
> # c for command prompt
> # ls to show partitions ... (hd0,gpt3)
> (hd0,gpt2) (hd0,gpt1)
> # help kopenbsd to show options
>
> # reboot to linux and edit 40_custom
> # run update_grub
> # reboot
>
>
>
> Go well,
>
> Colin Tree
>
>