Re: grub2 with libzfs

2013-05-31 Thread Larry Rosenman
Wes Morgan wrote: >Are you using grub2 to chainload or booting gptzfsloader directly? I >can't >use gptzfsloader directly because it seems to get very confused by the >hybrid GPT MBR needed for booting win7 on a non-EFI laptop. > > > >On Mon, May 20, 2013 at 9:29 PM, Larry Rosenman wrote: > >> On

Re: grub2 with libzfs

2013-05-31 Thread Wes Morgan
Are you using grub2 to chainload or booting gptzfsloader directly? I can't use gptzfsloader directly because it seems to get very confused by the hybrid GPT MBR needed for booting win7 on a non-EFI laptop. On Mon, May 20, 2013 at 9:29 PM, Larry Rosenman wrote: > On 2013-05-20 21:26, Wes Morgan

Re: grub2 with libzfs

2013-05-20 Thread Freddie Cash
I just recently (last week) converted my "root on USB; data on ZFS" setup using 2x mirror vdevs to "root-on-zfs". Works beautifully, and can boot off any of the 4 drives in the pool. Using standard loader and gptzfsboot. PC-BSD 9.1-p3. And, I just configured a new storage server at work using Fre

Re: grub2 with libzfs

2013-05-20 Thread Larry Rosenman
On 2013-05-20 21:26, Wes Morgan wrote: Trying to boot a zfs (GPT) partition with the latest patch gives me an "unaligned pointer " sometimes. When I enable all the debugging I can also get an error "invalid nvlist header". Currently just booting from a ufs partition acting as /boot, but my goal

Re: grub2 with libzfs

2013-05-20 Thread Wes Morgan
Trying to boot a zfs (GPT) partition with the latest patch gives me an "unaligned pointer " sometimes. When I enable all the debugging I can also get an error "invalid nvlist header". Currently just booting from a ufs partition acting as /boot, but my goal would be to get rid of that extra partitio

Re: grub2 with libzfs

2013-04-14 Thread Juergen Lock
In article <1365928778123-5803692.p...@n5.nabble.com> you write: >grub2.0 is installed, but does not have ZFS capability. I go to the grub >command-line and: >grub> ls => (hd0,gpt1) (hd0,gpt2) (hd1,gpt1) (hd1,gpt2) etc... >grub> zfsinfo (hd0,gpt1) => error: could't find a valid label > Hm interesti

Re: grub2 with libzfs

2013-03-29 Thread Juergen Lock
On Fri, Mar 29, 2013 at 02:45:59PM -0400, Sam Fourman Jr. wrote: > > http://people.freebsd.org/~nox/tmp/grub-2.00-004-zfs.patch > > > > I haven't runtime-tested grub-install and booting at all yet tho, > > let alone the zfs support, I'll leave that testing to volunteers > > like you for no

Re: grub2 with libzfs

2013-03-29 Thread Beeblebrox
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 kfreeb

Re: grub2 with libzfs

2013-03-29 Thread Sam Fourman Jr.
> http://people.freebsd.org/~nox/tmp/grub-2.00-004-zfs.patch > > I haven't runtime-tested grub-install and booting at all yet tho, > let alone the zfs support, I'll leave that testing to volunteers > like you for now. :) > > Thanx, > Juergen > _

Re: grub2 with libzfs

2013-03-29 Thread Juergen Lock
In article <1364469893741-5799652.p...@n5.nabble.com> you write: >>>you only have to add >>>CPATH=${SRC_BASE}/cddl/contrib/opensolaris/lib/libzfs/common >>>to CONFIGURE_ENV and MAKE_ENV, and add a ZFS knob to enable this >>>that checks >${SRC_BASE}/cddl/contrib/opensolaris/lib/libzfs/common

Re: grub2 with libzfs

2013-03-27 Thread Juergen Lock
On Wed, Mar 27, 2013 at 11:31:50AM -0700, Beeblebrox wrote: > EDIT: I just tried "make" (without the --enable-libzfs) flag for grub 2.0 and > got different error: > > grub-2.00 # make > "Makefile", line 20946: Need an operator > > line 20946 is: > 44: export LC_COLLATE := C > 45: export LC_CTYPE

Re: grub2 with libzfs

2013-03-27 Thread Christian Mangin
Beeblebrox a écrit : > Your Makefile went pretty well for a while - config ran cleanly without any > problems. > >>> You're compiling with gcc and use gcc46 include files? > I have lang/gcc46 installed, but found that many gnu-related ports gave gcc > errors. Then I found the fix like this (until

Re: grub2 with libzfs

2013-03-27 Thread Christian Mangin
Beeblebrox a écrit : >>> current version of grub2 in the ports could be sufficient for your need > That's what I had hoped for and expected, but the port build fails (that's > why I had contacted the port maintainer Sergey Matveychuk). Build for grub > 1.98_1 breaks at: > > gcc -Iefiemu -I./efiemu

Re: grub2 with libzfs

2013-03-27 Thread Beeblebrox
>> current version of grub2 in the ports could be sufficient for your need That's what I had hoped for and expected, but the port build fails (that's why I had contacted the port maintainer Sergey Matveychuk). Build for grub 1.98_1 breaks at: gcc -Iefiemu -I./efiemu -nostdinc -isystem /usr/local/l

Re: grub2 with libzfs

2013-03-27 Thread Christian Mangin
Beeblebrox a écrit : > EDIT: I just tried "make" (without the --enable-libzfs) flag for grub 2.0 and > got different error: > > grub-2.00 # make > "Makefile", line 20946: Need an operator > > line 20946 is: > 44: export LC_COLLATE := C > 45: export LC_CTYPE := C > 46: unexport LC_ALL > > Which sour

Re: grub2 with libzfs

2013-03-27 Thread Christian Mangin
Beeblebrox a écrit : > Hi, very happy to see that there are other grub fans in FreeBSD-land! > > I was planning to place my grub on a separate UFS partition so that I can > boot other things (like loopbacked iso's) if I should want to. The grub UFS > partition only has grub files in it (what mounts

Re: grub2 with libzfs

2013-03-27 Thread Christian Mangin
Hello, You don't need libzfs to use grub2 on ZFS. You just need to specify the zfs module if your 'grub-install' target is a ZFS dataset. I've submitted a patch for this port a while ago, There are probably issues I'm not aware of but I've been using this custom port for the last 6 months without