From owner-freebsd-rc@FreeBSD.ORG Sun Feb 27 14:34:55 2005 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 521C416A4CE for ; Sun, 27 Feb 2005 14:34:55 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E442943D1F for ; Sun, 27 Feb 2005 14:34:52 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.68.156] (HELO rogue.smit.lan) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP id 74861433; Sun, 27 Feb 2005 17:26:54 +0300 Received: by rogue.smit.lan (Postfix, from userid 1000) id 4AE5DB88B; Sun, 27 Feb 2005 16:12:04 +0300 (EAT) Date: Sun, 27 Feb 2005 16:12:03 +0300 From: Mike Makonnen To: Brooks Davis Message-ID: <20050227131203.GA3172@rogue.smit.lan> References: <20050224221257.GA655@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20050224221257.GA655@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/6.0-CURRENT (i386) cc: rc@freebsd.org Subject: Re: proposal: etc/rc.d/initdiskless -> /etc/rc.initdiskless X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 14:34:55 -0000 On Thu, Feb 24, 2005 at 02:12:57PM -0800, Brooks Davis wrote: > I would like to propose that we move the initdiskless script out of rc.d > and back into /etc. The reason for doing this is that initdiskless is > really about bootstrapping /etc from a minimial configuration. Thus > running it via rcorder is really running it too early.=20 ^^^^^^^^^ I think you mean too late, right? > By moving it to > /etc and running it directly from /etc/rc (possiably conditionally based > on the existance of /conf) we fix this issue. The main benefit of this > is that /etc/rc.d can now be modified or created entierly from entries > under /conf which could make it easier to maintain extra scripts in the > main flow of rc.d. >=20 > The change to /etc/rc would look something like: >=20 > diff -u -p -r1.335 rc > --- rc 8 Oct 2004 14:23:49 -0000 1.335 > +++ rc 24 Feb 2005 21:02:18 -0000 > @@ -50,6 +50,10 @@ HOME=3D/ > PATH=3D/sbin:/bin:/usr/sbin:/usr/bin > export HOME PATH > =20 > +if [ -d /conf ]; then > + /etc/rc.initdiskless > +fi > + This is too generic. Isn't there some way of definitely knowing whether this is a diskless boot? > . /etc/rc.subr > =20 > # Note: the system configuration files are loaded as part of >=20 >=20 > Does anyone have major objections to this change? The goal is to run > initdiskless as early as possible so /etc can be as minimal as possible > at that point. Sounds ok to me. Cheers. --=20 Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4= 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !