Re: random(4) related panic: sleeping without a mutex

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Mon, 12 Apr 2004 15:36:04 -0700
On Mon, Apr 12, 2004 at 11:19:59PM +0100, Mark Murray wrote:
> "Simon L. Nielsen" writes:
> > > Yeah. Part of the startup does a "kickstart" of the device by writing
> > > garbage to it. I wonder why it didn't do that this time. Is your
> > > /etc/rc* completely up to date? What is in your rc.conf?
> > 
> > The problem is that I use initdiskless which is run as the very first
> > rc.d script, even before initrandom.  It has to run first since /etc is
> > replaced by that script.
> 
> Hmmm. Methinks initdiskless should depend on initrandom.

As it stands, initdiskless can't really depend on initrandom because
initrandom depends on /etc/rc.conf existing and /etc may not exist until
after initdiskless does.

For the purposes of initdiskless, feeding /dev/random noisy command
output should be sufficent so either adding that directly or creating a
preseedrandom script that runs before initdiskless should be OK.

-- Brooks

-- 
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

Received on Mon Apr 12 2004 - 14:39:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC