From owner-freebsd-fs@FreeBSD.ORG Fri Mar 23 13:13:02 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D6CC106566C for ; Fri, 23 Mar 2012 13:13:02 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id CAF848FC17 for ; Fri, 23 Mar 2012 13:13:01 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q2NDCrvH007952 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 23 Mar 2012 13:12:53 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.0 smtp.infracaninophile.co.uk q2NDCrvH007952 Authentication-Results: smtp.infracaninophile.co.uk/q2NDCrvH007952; dkim=none (no signature); dkim-adsp=none Message-ID: <4F6C76CD.7050006@FreeBSD.org> Date: Fri, 23 Mar 2012 13:12:45 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120313 Thunderbird/11.0 MIME-Version: 1.0 To: Florian Wagner References: <4F6C6352.9090906@FreeBSD.org> <20120323131508.0272be25@auedv3.syscomp.de> In-Reply-To: <20120323131508.0272be25@auedv3.syscomp.de> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig109575C643EA2EE1BD0DE397" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-fs@FreeBSD.org Subject: Re: Overriding the zpool bootfs property from the loader? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2012 13:13:02 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig109575C643EA2EE1BD0DE397 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 23/03/2012 12:15, Florian Wagner wrote: > I've recently discussed more or less the same on this list. The thread > is called "Extending zfsboot.c to allow selecting filesystem from > boot.config" and available in the mailing list archives of October, > November 2011 and Januar 2012. >=20 > Summary: Andriy Gapon has a bunch of changes against head in his avgbsd= > repository [1] which implement something like this. With his help I've > backported these to stable 8. >=20 > I've just recently gone over the work and put together a culminating > patch, which I've tested as extensively as possible in my at-home > environment. This is available as a Mercurial patch queue at [2] or > directly at [3]. Yes, this looks like pretty much what I was asking for. So, if I understand this correctly, given a root zpool named 'zroot' and a number of ZFSes with different boot environments ( zroot/ROOT/FOO, zroot/ROOT/BAR, etc.) I could interrupt the boot before the menu screen and just type at the boot: prompt -- zfs:zroot/ROOT/FOO:boot/zfsloader or zfs:zroot/ROOT/BAR:boot/zfsloader to select different environments. Is that right? I'll give your patches a go over the weekend -- I'm on stable/9 though. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig109575C643EA2EE1BD0DE397 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9sdtQACgkQ8Mjk52CukIzndACfeFyYJPgtj9ZgE44R6gGS9H5c NxsAn3YALM+Wx+toNMhdFuyp06VWzZXX =1zbt -----END PGP SIGNATURE----- --------------enig109575C643EA2EE1BD0DE397--