From owner-freebsd-rc@FreeBSD.ORG Thu Dec 8 22:20:14 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org 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 85A6D16A41F; Thu, 8 Dec 2005 22:20:14 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A50B43D45; Thu, 8 Dec 2005 22:20:13 +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 jB8MKD0S009475; Thu, 8 Dec 2005 14:20:13 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jB8MKDS4009474; Thu, 8 Dec 2005 14:20:13 -0800 Date: Thu, 8 Dec 2005 14:20:13 -0800 From: Brooks Davis To: Doug Barton Message-ID: <20051208222013.GB5759@odin.ac.hmc.edu> References: <4398AB6A.3000209@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <4398AB6A.3000209@FreeBSD.org> 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 Cc: freebsd-rc@freebsd.org Subject: Re: For Review: Latest update to rcorder patch X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Dec 2005 22:20:14 -0000 --E39vaYmALEf/7YXx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 08, 2005 at 01:53:46PM -0800, Doug Barton wrote: > Howdy, >=20 > The attached patch contains what I hope are the final tweaks to the new= =20 > rcorder code. It has the following changes: >=20 > 1. Silences a grep warning when an rc.d directory in $local_startup is=20 > empty. >=20 > 2. Adds a variable to /etc/defaults/rc.conf called early_late_divider=20 > (better name suggestions welcome) that defines the script to use to=20 > separate the early and late stages, and the commensurate code in rc. This= =20 > makes the option configurable, which on the one hand puts a bullet in the= =20 > foot-shooting gun for careless admins, but on the other hand gives more= =20 > flexibility to those that can make use of it. >=20 > 3. Defaults the divider to mountcritlocal, instead of mountcritremote.=20 > When last I talked to Brooks about this, he said that this would=20 > "probably" be ok even for diskless booting, however I'm willing to make i= t=20 > mountcritremote for now if we're not sure of this. Alternatively, we can= =20 > make the default mountcritlocal, and instruct diskless booters to change= =20 > this setting. Since I am not really involved in the diskless booting=20 > stuff, I'm totally open to the consensus opinion on this. If we change it= ,=20 > this will move the following scripts into the late stage: Conceptually, I'm happy with this. A few things. - I'd suggest explicitly stating that the only sane values for $early_late_divider are probably root, mountcritlocal, and mountcritremote. - diskless.8 should probably be updated to mentation that early_late_divider must be set to mountcritremote for the documented configuration to work. - If you want to depend on an rc.conf value in /etc/rc, /etc/rc.d/rcconf.sh should die. early_late_divider is only non-zero every time through the loop by accident at this point. Since rcconf.sh is no longer needed due to moving rc.d/initdiskless back to /etc/rc.initdiskless, it's safe to handle configuration in /etc/rc. -- 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 --E39vaYmALEf/7YXx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDmLGcXY6L6fI4GtQRAn5XAJ4kQy0OYJwsc0rSC3aT9V3Sk/9Q9wCfXLop /B9ZaL5DRqdrOAGFeAXekTQ= =b0lj -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx--