From owner-cvs-all@FreeBSD.ORG Mon Jun 7 20:46:22 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA95B16A4CE; Mon, 7 Jun 2004 20:46:22 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B4E443D1D; Mon, 7 Jun 2004 20:46:22 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.10) with ESMTP id i57KkMRH021337; Mon, 7 Jun 2004 13:46:22 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i57KkL0A021335; Mon, 7 Jun 2004 13:46:21 -0700 Date: Mon, 7 Jun 2004 13:46:21 -0700 From: Brooks Davis To: "David O'Brien" Message-ID: <20040607204621.GA19196@Odin.AC.HMC.Edu> References: <200406070916.i579GJLe052073@repoman.freebsd.org> <20040607091630.8659116A58E@hub.freebsd.org> <20040607182216.GB28779@Odin.AC.HMC.Edu> <20040607202221.GA46456@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <20040607202221.GA46456@dragon.nuxi.com> User-Agent: Mutt/1.5.4i cc: Brooks Davis cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: [src] cvs commit: src/etc/rc.d preseedrandom X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 20:46:22 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 07, 2004 at 01:22:21PM -0700, David O'Brien wrote: > On Mon, Jun 07, 2004 at 11:22:16AM -0700, Brooks Davis wrote: > > On Mon, Jun 07, 2004 at 09:16:30AM +0000, David E. O'Brien wrote: > > > obrien 2004-06-07 09:16:19 UTC > > >=20 > > > FreeBSD src repository > > >=20 > > > Modified files: > > > etc/rc.d preseedrandom=20 > > > Log: > > > Don't assume everyone's /etc/[default/]rc.conf 'entropy_file' is "/= entropy". > >=20 > > This was deliberate. The preseedrandom script only exists to get > > enough entropy into the system to get initdiskless off the ground. > > Real entropy seeding takes place in initrandom. You must not assume > > rc.conf exists when preseedrandom is called! The only things you get to > > assume are a / as populated by installworld and an /etc as populated by > > make distribute. At that /etc/rc.conf may not exist since it could be > > created by initdiskless. >=20 > Our diskless setup has become overly convoluted -- I still use the simple > Sun-style. That said /etc/defaults/rc.conf is populated by 'make > installworld'. We have a published interface (entropy_file=3D"/entropy" # > Set to NO to disable caching entropy through reboots), and > 'rc.d/preseedrandom' should be made to properly use it. >=20 > If some diskless environments are too broken to allow the published > interface, why can't hacks for them be added to 'rc.d/initdiskless'? The published interface applies to those scripts that can depend (directly or indirectly) on rcconf.sh. Before that point rc.conf=20 is not sourced in the script's environment so entropy_file is not defined. I'm pretty sure this change makes 'feed_dev_random "/entropy"' into 'feed_dev_random ""'. -- 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 --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAxNO4XY6L6fI4GtQRAo4qAKCyZ76qYK7sAAHtw1s08vOr7M42eQCgqHi2 XoHvgGrxSRuEP9laSEK3d+Q= =iKuM -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X--