Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2009 16:16:54 -0800
From:      perryh@pluto.rain.com
To:        tajudd@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NanoBSD :: smallest image size
Message-ID:  <49a09976.aSDgbMrM6lxmGgph%perryh@pluto.rain.com>
In-Reply-To: <1235240666.848.4.camel@opensolaris>
References:  <499D67B6.60309@datapipe.com> <20090219161505.X46627@wojtek.tensor.gdynia.pl> <499D7F0B.7000307@datapipe.com> <20090219164957.G46777@wojtek.tensor.gdynia.pl> <5635aa0d0902190800s7c3b5ec2qfa894618aa4cc554@mail.gmail.com> <499D857A.4090205@datapipe.com> <499e605f.Y0AKiAwtC1uQckLJ%perryh@pluto.rain.com> <1235240666.848.4.camel@opensolaris>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Judd <gmail.com!tajudd@agora.rdrop.com> wrote:

> On Thu, 2009-02-19 at 23:48 -0800, perryh@pluto.rain.com wrote:
> > > I did consider running it off a straight cd, but I alter my routes
> > > enough through various tunnels I have established that this would
> > > be a pain.  (i.e. updating vtund configs) ...
> > 
> > System on CD, reading config from floppy?
>
> I've tried this, in my own mix
> due to rcorder, an external /etc filesystem is not read NOR mounted in
> time to be read.  When I did it and tried to bring it up ASAP, the
> system failed to read hostname variable in the external /etc filesystem.
>
> I haven't yet, and probably won't try -- to rewrite the /etc/rc startup
> to allow it.  And I think it's because /etc/rc sources /etc/rc.conf even
> before it runs....  So how can I start rc and get the
> external /etc/rc.conf read before rc starts?
>
> I'd like to know, if it's possible.

There's no way to mount /etc AFAIK, because parts of it are
needed too soon:  /etc/fstab if nothing else.  However, I had
gotten the impression that the only frequently-changing part
of the config in question involved vtund.

Rather than trying to do the mount early, I was thinking
of starting vtund later than usual -- perhaps by making
it depend on the completion of "mount -a" -- and having
it read its config from a file on the mounted floppy.

If vtund has to start sooner than that, an alternate approach
might be to have vtund read its config from the /dev/fd0 device
itself, rather than from a filesystem mounted on /dev/fd0
(having prepared the floppy ahead of time by something like
"dd if=/path/to/vtund/config/file of=/dev/fd0").

Yet another approach would be to have boot and root (and thus
/etc) on floppy, but /usr on CD.  Tweaking things so that /usr
can be read-only dates back at least as far as SunOS 4.0.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49a09976.aSDgbMrM6lxmGgph%perryh>