Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2010 04:41:49 -0800
From:      David Allen <the.real.david.allen@gmail.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        "Tim Judd \(tajudd@gmail.com\)" <tajudd@gmail.com>, Peter Steele <psteele@maxiscale.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How customized can an mfsroot be?
Message-ID:  <r2j2daa8b4e1004070541v5b617713kddd6a23e4b83c1a9@mail.gmail.com>
In-Reply-To: <4BBC32A4.1080906@infracaninophile.co.uk>
References:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7D05@MBX03.exg5.exghost.com> <x2uade45ae91004051730j87d11987j47b3b945971c85d6@mail.gmail.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7FAD@MBX03.exg5.exghost.com> <m2gade45ae91004051744pa4d4d86ax6a1e1f38195dc6a7@mail.gmail.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7FDD@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F8066@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F84AD@MBX03.exg5.exghost.com> <4BBC32A4.1080906@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/6/10, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
> On 07/04/2010 06:28:40, Peter Steele wrote:
>> I found something else that's missing--/var/db/pkg is empty. It looks
>> like what the auto-var process does is a construct basic directory
>> structure but no data. Is there a solution to this? Can I get /var to
>> be populated with the full contents of the real /var?
>
> Can you write a few shell scripts?  You'ld need to create a tarball of
> the /var contents you need on the box, and explode it onto /var at boot
> time -- if you're using auto-var on MFS all the time, you'll need to set
> that up to happen on every reboot.

I'm probably missing something here, but I'm not sure that's correct.  If
the OP wants his own /var, then diskless(8) describes how /var can be
automagically populated (see also /etc/rc.initdiskless).  The nanobsd.sh
script (designed with flash drives in mind) uses this method.  I looked
into adopting something similar some time back but decided on an
alternative solution so I can't provide anything more than a general
comment.

As a side comment, I'd add I hope the OP publishes the results of his
efforts to benefit others who may want to do the same.

HTH



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?r2j2daa8b4e1004070541v5b617713kddd6a23e4b83c1a9>