From owner-cvs-all Tue Oct 24 3:41: 2 2000 Delivered-To: cvs-all@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id 73A4337B479; Tue, 24 Oct 2000 03:40:58 -0700 (PDT) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id 36D8E3E51; Tue, 24 Oct 2000 12:40:57 +0200 (CEST) Date: Tue, 24 Oct 2000 12:40:57 +0200 From: Jesper Skriver To: Warner Losh Cc: Mark Murray , "John W. De Boskey" , "Jordan K. Hubbard" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc rc Message-ID: <20001024124057.A4309@skriver.dk> References: <200010232046.e9NKkLR01463@grimreaper.grondar.za> <20001023081548.A41843@bsdwins.com> <200010232046.e9NKkLR01463@grimreaper.grondar.za> <200010232321.RAA11268@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200010232321.RAA11268@harmony.village.org>; from imp@village.org on Mon, Oct 23, 2000 at 05:21:49PM -0600 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 23, 2000 at 05:21:49PM -0600, Warner Losh wrote: > In message <200010232046.e9NKkLR01463@grimreaper.grondar.za> Mark Murray writes: > : I have some ideas - I'll be a little slow until vacation ends, then > : I'll be full speed ahead. John - Feel free to play with the etc/rc* stuff. > > Personally, I'm thinking seriously of changing that whole guessing > mess to something like > n=`date %S` > dd if=/dev/da0s1b of=/dev/random seek=$n bs=16k count=1 \ > >/dev/null 2>&1 > as the first few lines of /etc/rc before even fsck. As it doesn't > require access to file systems. > > This does assume three things: > 1) That swap space is random enough (and on da0s1b :) > 2) 16k is enough > 3) swap space is at least 1M in size. > but it is good enough for the fallback case. > > As I said at BSDcon, I'd love to see the entropy written by the kernel > on shutdown to the end of swap space on shutdown and read in again > when the system comes back. I have a idea, what about updating /entropy from cron every hour or so, then if the box goes down hard for some reason, we'll have a entropy file anyway ... /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 Work: Network manager @ AS3292 (Tele Danmark DataNetworks) Private: Geek @ AS2109 (A much smaller network ;-) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message