Date: Mon, 28 Apr 2008 15:00:16 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-doc@freebsd.org Cc: David Naylor <naylor.b.david@gmail.com> Subject: Re: mfsroot options are undocumented Message-ID: <200804281500.16960.jhb@freebsd.org> In-Reply-To: <200804261025.24480.naylor.b.david@gmail.com> References: <200804261025.24480.naylor.b.david@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804281500.16960.jhb>