From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NzSUl-00050c-86 for mharc-grub-devel@gnu.org; Wed, 07 Apr 2010 06:28:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzSUi-0004zW-BZ for grub-devel@gnu.org; Wed, 07 Apr 2010 06:28:24 -0400 Received: from [140.186.70.92] (port=49422 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzSUg-0004z9-Ke for grub-devel@gnu.org; Wed, 07 Apr 2010 06:28:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzSUe-0001Oa-Px for grub-devel@gnu.org; Wed, 07 Apr 2010 06:28:22 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:63747) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzSUe-0001OO-HP for grub-devel@gnu.org; Wed, 07 Apr 2010 06:28:20 -0400 Received: by bwz23 with SMTP id 23so711885bwz.26 for ; Wed, 07 Apr 2010 03:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=XsbwyUSmS1NRdDkjdkfug6rG4bO5/K5kOCrcaHjXXDA=; b=fg9a80sNsZdFaedrbmqoSHDJ0ik+HpCVWLeX2OQ6EHZFihKKVEyn0PIdK18aUJ5cQ1 jaMAZXOCh4Nyv8qxMtwbVCMjSHZsSh2KyKs648DyHygB8IxI+xL08rJjR+9v3LmEv39r 3owGgJmJ6cj2PYDX65VEDibwucJ3nqeFMw3EE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=bAtLE+5AMMaD09HFISUp2ickI4Oyz5MOtd365bNrgJnT7lq6NQ3HHOvAYbqullM/iQ LkpLwlv9u+gfKinNEZvaE4gaSK34QvcAWs6Od+V5+mFty4lWN/XkB4m6Qe7jOOJaot3w 2iyf2Exk7+uxBJ000ki6diF8I0aiTTnds+ubo= Received: by 10.204.155.68 with SMTP id r4mr4094819bkw.208.1270636098779; Wed, 07 Apr 2010 03:28:18 -0700 (PDT) Received: from debian.bg45.phnet (149-144.203-62.cust.bluewin.ch [62.203.144.149]) by mx.google.com with ESMTPS id 15sm7130725bwz.4.2010.04.07.03.28.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Apr 2010 03:28:17 -0700 (PDT) Message-ID: <4BBC5E39.7070007@gmail.com> Date: Wed, 07 Apr 2010 12:28:09 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigB29E59AD63F926218EA2B023" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] grub + FreeBSD's loader(8) + ZFS root X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 10:28:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB29E59AD63F926218EA2B023 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Navdeep Parhar wrote: > Hello grub-devel, > > Right now it's not possible to boot using FreeBSD's loader(8) from a ZF= S > root filesystem. Grub doesn't indicate to the loader that there is a > ZFS root involved and consequently the loader fails to find the kernel.= > The attached patch fixes this. It does not affect those that boot the > kernel directly. This is only for users that want to boot using > FreeBSD's loader. > > Why would you want to? IMHO it is much simpler to boot indirectly usin= g > the loader because in that case grub does not have to deal with > device.hints, kernel modules, kFreeBSD.xxx style variables, > /boot/zfs/zpool.cache, etc. As a FreeBSD user, I'm used to putting thi= s > information in the "normal" config files (/boot/loader.conf, device.hin= ts, > etc.) and not in a grub.cfg file. Grub only needs to know where the loa= der > is, nothing else: > > menuentry "FreeBSD 8" { > search -s -l fbsd8 > kfreebsd -D /@/boot/zfsloader > } > (fbsd8 is the name of the ZFS root pool) > > =20 Eternal chainloading isn't the way to go. It limits grub usefullness and scope and is to be used only when no alternative exists. In this case the right direction would be to make a small C module to parse boot(8) config or a shell script for 30_osprober.in to do the same job > Let me know if you have any questions. Once again, if you load the > kernel directly and want to load modules and set kFreeBSD.foo.bar=3D...= > yourself, all that will continue to work. > > Regards, > Navdeep > =20 > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigB29E59AD63F926218EA2B023 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAku8Xj8ACgkQNak7dOguQgkpngEAmHaDPZ98beAYhPggCDQcJjrR HeC0sTEIG5EGZ+Dr3i4A/A1F4+CEgYXd9r6tbHslqEybH2ShPz4MLVM0ruhchpJP =ehhy -----END PGP SIGNATURE----- --------------enigB29E59AD63F926218EA2B023--