grub2 with libzfs
Beeblebrox
zaphod at berentweb.com
Fri Mar 29 19:28:59 UTC 2013
Sam: it goes like this:
menuentry "FreeBSD Direct-Boot" {
search -s -l zpool
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
kfreebsd_loadenv /@/boot/device.hints
set kFreeBSD.vfs.root.mountfrom=zfs:zpool
}
This is valid if root is on the zfs dataset with the same name as the zpool
- a zfs dataset is created at the same time when pool is created. If root is
on that dataset, this is the syntax.
If root is on another dataset (say pool/myzfsroot) then modify @ with
myzfsroot@ =>
kfreebsd /myzfsroot@/boot/kernel/kernel
kfreebsd_module_elf /myzfsroot@/boot/kernel/opensolaris.ko
etc...
--
View this message in context: http://freebsd.1045724.n5.nabble.com/grub2-with-libzfs-tp5799405p5799993.html
Sent from the freebsd-ports mailing list archive at Nabble.com.
More information about the freebsd-ports
mailing list