From owner-freebsd-rc@FreeBSD.ORG Thu Feb 24 22:12:47 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 79D3216A4CE for ; Thu, 24 Feb 2005 22:12:47 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4170643D41 for ; Thu, 24 Feb 2005 22:12:47 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j1OMCv3p004364 for ; Thu, 24 Feb 2005 14:12:57 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j1OMCvXf004363 for rc@freebsd.org; Thu, 24 Feb 2005 14:12:57 -0800 Date: Thu, 24 Feb 2005 14:12:57 -0800 From: Brooks Davis To: rc@freebsd.org Message-ID: <20050224221257.GA655@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Subject: 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: Thu, 24 Feb 2005 22:12:47 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. 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. The change to /etc/rc would look something like: 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 + . /etc/rc.subr =20 # Note: the system configuration files are loaded as part of 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. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCHlFpXY6L6fI4GtQRAv3FAJ9xufSGFl7gHkHQsO0IFH0Txn+kfACfbyTS ZPzTdsgyQrLesIr5Fa2p9Zc= =RNuO -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--