From owner-freebsd-questions@FreeBSD.ORG Sun Feb 22 00:13:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FC83106566C for ; Sun, 22 Feb 2009 00:13:58 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 5CBA18FC16 for ; Sun, 22 Feb 2009 00:13:58 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n1M0Dvct032289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 21 Feb 2009 16:13:57 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n1M0DvQq032288; Sat, 21 Feb 2009 16:13:57 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA20181; Sat, 21 Feb 09 16:08:36 PST Date: Sat, 21 Feb 2009 16:16:54 -0800 From: perryh@pluto.rain.com To: tajudd@gmail.com Message-Id: <49a09976.aSDgbMrM6lxmGgph%perryh@pluto.rain.com> 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> In-Reply-To: <1235240666.848.4.camel@opensolaris> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: NanoBSD :: smallest image size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2009 00:13:59 -0000 Tim Judd 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.