Hello,
sorry, that I refer to this old thread, but it hits my issues very well so I think it is not useful to open a new thread.
I've installed Antergos on my Notebook with following partition sheme (in FreeBSD terms):
Code:
ada0 GPT
ada0p1 bios_grub
ada0p2 ext4 #Partition for Antergos
ada0p3 swap #for Antergos
ada0p4 freebsd-swap
ada0p5 freebsd-zfs #pool for FreeBSD and data
zelch none
zelch/ROOT none
zelch/ROOT/default /zelch/system
zelch/local /local
With grub-zfs and linux-zfs Antergos is zfs ready, I can import the pool zelch under Antergos and see installed FreeBSD under
/zelch/system
I've learned some months ago, that a separate
freebsd-boot is not needed when starting FreeBSD with grub2.
But - which lines exactly I've to put into
/etc/grub.d/40_custom, that I can start FreeBSD? Since a lot of ours I've tried to find out the correct code .... without any success.
Here is my current
/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 "FreeBSD ZFS Loader" {
insmod zfs
search -s -l zelch # zfsroot=the name of your root pool
kfreebsd zelch/@/boot/zfsloader
set kFreeBSD.vfs.root.mountfrom=zfs:zelch/ROOT/default
}
When choosing FreeBSD ZFS loader from Grub menu, I get the message, that <boot> cannot be found.
Instead of
Code:
kfreebsd zelch/@/boot/zfsloader
I've also tried the following:
Code:
...
kfreebsd /@/boot/kernel/kernel
kfreebsd_module_elf /@/boot/kernel/opensolaris.ko
kfreebsd_module_elf /@/boot/kernel/zfs.ko
kfreebsd_module /@/boot/zfs/zpool.cache type=/boot/zfs/zpool.cache
...}
But get same message.
Another try with "zelch" before each /@/... also does not help.
A lot of other tries ends with the hint, that I've to load kernel first and so on ....
How to boot my FreeBSD?
Update1: Or would it be a better idea to create also a freebsd-boot (as first partition or could it also be ada0p5)?
Uptate2: Or is it better to install Grub2 on FreeBSD and not on Antergos?
Kind regards,
Holger