From owner-freebsd-arch@FreeBSD.ORG Sun Aug 1 02:27:20 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 105A116A4CE for ; Sun, 1 Aug 2004 02:27:20 +0000 (GMT) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB84643D1D for ; Sun, 1 Aug 2004 02:27:19 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.13.0/8.13.0) with ESMTP id i712RHbH011975 for ; Sat, 31 Jul 2004 22:27:18 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <20040801014756.GA9457@troutmask.apl.washington.edu> Date: Sat, 31 Jul 2004 22:27:17 -0400 To: freebsd-arch@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Re: Random-ness when booting into single-user X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 02:27:20 -0000 At 10:02 PM -0400 7/31/04, Garance A Drosihn wrote: >At 6:47 PM -0700 7/31/04, Steve Kargl wrote: >>On Sat, Jul 31, 2004 at 09:37:15PM -0400, Garance A Drosihn wrote: >>> >>> Happily I have not run into this, and I think I would like to >>> make sure that I don't run into it -- even though I obviously >>> don't remember any of the details... >> >>http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/random/randomdev.c Which had the companion change at: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/random/randomdev_soft.c This suggests another tactic. randomdev_soft.c could go back to having random.sys.seeded default to 0, and maybe init.c could change it to 1 (if it is 0) before dropping into single-user mode, and then change it back (if it had been 0) before coming up in multi-user mode. [assuming that can be done] That way we wouldn't have to change anything in /etc/rc.d, and we have something safer than my previous suggestion. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu