svn commit: r273872 - in head: etc/defaults etc/rc.d libexec/save-entropy share/examples/kld/random_adaptor sys/conf sys/dev/glxsb sys/dev/random sys/kern sys/modules sys/modules/padlock_rng sys/mo...

Ian Lepore ian at FreeBSD.org
Sat Nov 1 23:35:04 UTC 2014


On Sun, 2014-11-02 at 00:24 +0100, Dag-Erling Smrgrav wrote:
> Ian Lepore <ian at FreeBSD.org> writes:
> > Mark R V Murray <markm at 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




More information about the svn-src-head mailing list