[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GRUB2 and GNU/kFreeBSD (was: Re: GNU/kFreeBSD into the Debian archive (aka we need your help))



On Sun, Apr 12, 2009 at 04:54:47PM +0200, Robert Millan wrote:
> On Sun, Apr 05, 2009 at 07:54:22PM +0200, Axel Beckert wrote:
> > Hi,
> > 
> > On Sun, Apr 05, 2009 at 07:29:00PM +0200, Robert Millan wrote:
> > > Recent versions of GRUB 2 can load the kernel directly.  Something like
> > > this I think:
> > > 
> > >         freebsd                 /boot/kernel
> > >         freebsd_loadenv         /boot/devices.hints
> > >         set FreeBSD.vfs.root.mountfrom=ufs:ad0s1
> > 
> > Anyone managed to get the Debian grub maintainance scripts working
> > from inside GNU/kFreeBSD?
> > 
> > My recent try (just a few weeks ago) failed badly because grub-probe
> > (and therefore update-grub) expects harddisks to be block devices
> > while they are character devices under (k)FreeBSD.
> 
> Hi,
> 
> This was recently fixed in upstream.  According to Felix (CCed), grub-setup
> still has trouble, though:
> 
>   grub-setup: error: cannot open `/dev/da0' in open_device()

I don't have time to test this right now, but for the reference, it seems
that g_open() from libgeom needs to be used rather than plain open().

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."


Reply to: