From owner-freebsd-doc@FreeBSD.ORG Mon Apr 28 19:30:55 2008 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AAA21065678 for ; Mon, 28 Apr 2008 19:30:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 34CA18FC2D for ; Mon, 28 Apr 2008 19:30:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unknown [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id 751321A4D7C; Mon, 28 Apr 2008 12:12:54 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m3SJCeqf090078; Mon, 28 Apr 2008 15:12:42 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-doc@freebsd.org Date: Mon, 28 Apr 2008 15:00:16 -0400 User-Agent: KMail/1.9.7 References: <200804261025.24480.naylor.b.david@gmail.com> In-Reply-To: <200804261025.24480.naylor.b.david@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804281500.16960.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 28 Apr 2008 15:12:42 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/6980/Mon Apr 28 13:39:47 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: David Naylor Subject: Re: mfsroot options are undocumented X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 19:30:55 -0000 On Saturday 26 April 2008 04:25:16 am David Naylor wrote: > Hi, > > Recently I have been trying a few different approaches of building live CD's > with FreeBSD (something that is surprisingly easy, especially compared to > other systems). Something of interest is mounting from a memory filesystem. > > The problem is the loader.conf commands appear to be undocumented, from what I > can gather they are: > mfsroot_load="YES" > mfsroot_type="mfs_root" > mfsroot_name="/boot/mfsroot" You could also do: foo_load="YES" foo_type="mfs_root" foo_name="/boot/mfsroot" The loader looks for anything that matches *_load and tries to load it. By default it assumes an empty type and that the filename matches the '*', so "foo_load=YES" makes the loader do 'load foo'. The *_type and *_name can override the type and name so that the two variable sets above both correspond to 'load -t mfs_root /boot/mfsroot'. The point is that there is nothing magical about "mfsroot" in "mfsroot_load". I'm not sure if the *_load stuff is documented completely, but that is how you would document this. -- John Baldwin