From owner-cvs-all@FreeBSD.ORG Mon Jun 7 20:22:23 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 DBB3016A4F0; Mon, 7 Jun 2004 20:22:23 +0000 (GMT) Received: from TRANG.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA6F43D49; Mon, 7 Jun 2004 20:22:23 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by TRANG.nuxi.com (8.12.11/8.12.10) with ESMTP id i57KMMOJ046775; Mon, 7 Jun 2004 13:22:23 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.11/8.12.11/Submit) id i57KMMBr046774; Mon, 7 Jun 2004 13:22:22 -0700 (PDT) (envelope-from obrien) Date: Mon, 7 Jun 2004 13:22:21 -0700 From: "David O'Brien" To: Brooks Davis Message-ID: <20040607202221.GA46456@dragon.nuxi.com> References: <200406070916.i579GJLe052073@repoman.freebsd.org> <20040607091630.8659116A58E@hub.freebsd.org> <20040607182216.GB28779@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040607182216.GB28779@Odin.AC.HMC.Edu> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 Reply-To: obrien@FreeBSD.ORG 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:22:24 -0000 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 > > > > FreeBSD src repository > > > > Modified files: > > etc/rc.d preseedrandom > > Log: > > Don't assume everyone's /etc/[default/]rc.conf 'entropy_file' is "/entropy". > > 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. 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="/entropy" # Set to NO to disable caching entropy through reboots), and 'rc.d/preseedrandom' should be made to properly use it. If some diskless environments are too broken to allow the published interface, why can't hacks for them be added to 'rc.d/initdiskless'? -- -- David (obrien@FreeBSD.org)