Hi Colin,

I also use a Archlinux/OpenBSD dualboot system. Following grub configuration works for me.

/etc/grub.d/40_custom

menuentry "OpenBSD" {
        set root=(hd0,3)
        chainloader +1
}

OpenBSD is installed on /dev/sda3

Best regards,
Sven


On 6/2/20 5:51 AM, Colin Tree wrote:
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


Reply via email to