From owner-freebsd-stable@FreeBSD.ORG Fri May 28 19:18:33 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8568B1065670 for ; Fri, 28 May 2010 19:18:33 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mx1.freebsd.org (Postfix) with ESMTP id 327EA8FC19 for ; Fri, 28 May 2010 19:18:31 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta02.westchester.pa.mail.comcast.net with comcast id P0Ai1e00427AodY527JYvu; Fri, 28 May 2010 19:18:32 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta19.westchester.pa.mail.comcast.net with comcast id P7JW1e0033S48mS3f7JWAy; Fri, 28 May 2010 19:18:32 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id A03179B418; Fri, 28 May 2010 12:18:28 -0700 (PDT) Date: Fri, 28 May 2010 12:18:28 -0700 From: Jeremy Chadwick To: Dave Hayes Message-ID: <20100528191828.GA83371@icarus.home.lan> References: <201005272348.o4RNmgWh014243@hugeraid.jetcafe.org> <20100528043006.GA18560@lava.net> <201005281757.o4SHvTwq020905@hugeraid.jetcafe.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201005281757.o4SHvTwq020905@hugeraid.jetcafe.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org, Clifton Royston Subject: Re: Locking a file backed mdconfig into memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2010 19:18:33 -0000 On Fri, May 28, 2010 at 10:57:29AM -0700, Dave Hayes wrote: > Clifton Royston writes: > > It sounds like what you really want is to load the contents of the > > specified file as a memory system? That's not part of mdconfig's > > repertoire, to the best of my recollection. > > So if, in /etc/loader.conf, I do this: > > rootfs_load="YES" > rootfs_type="mfs_root" > rootfs_name="/mfsboot" > vfs.root.mountfrom="ufs:md0" I think you mean /boot/loader.conf? And I think you meant this for variable names, in addition to what vfs.root.mountfrom should be (specific to RELENG_8): mfsroot_load="YES" mfsroot_type="mfs_root" mfsroot_name="/some/path/mfsroot" vfs.root.mountfrom="ufs:/dev/md0" If using RELENG_7 and the mfsroot was made on RELENG_7, replace "/dev/md0" with "/dev/md0c". -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |