On Sun, 2014-11-02 at 00:24 +0100, Dag-Erling Smrgrav wrote:
> Ian Lepore <i...@freebsd.org> writes:
> > Mark R V Murray <ma...@freebsd.org> writes:
> > > The writing happens at shutdown; before you do the shutdown could
> > > you please do a ‘sysctl kern.random’ and post the result?
> > I'm not sure where you're getting "at shutdown" from.
> 
> From the code.  This is a portion of the rc script that only runs at
> shutdown.  If random_stop() runs during boot, something is seriously
> wrong *somewhere else* and you are welcome to help find out what.
> 
> DES

Well that took all of 90 seconds...

In rc.d/random we have:

 extra_commands="saveseed"
 saveseed_cmd="${name}_stop"

and in rc.d/postrandom we have:

  postrandom_start()
  {
        /etc/rc.d/random fastsaveseed
  ...

and so it tries to write an entropy file at startup and hangs,
presumably because /dev/random hasn't been sufficiently fed to generate
that much random output?

-- Ian


_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to