Netbooting broken

Kris Kennaway kris at obsecurity.org
Mon Apr 12 20:46:59 PDT 2004


On Mon, Apr 12, 2004 at 07:26:52PM -0700, Brooks Davis wrote:
> On Mon, Apr 12, 2004 at 07:06:56PM -0700, Kris Kennaway wrote:
> > Some time in the last 5 or 6 days days diskless booting has become
> > broken:
> > 
> > Mounting root from nfs:
> > NFS ROOT: 216.136.204.23:/a/nfs/5.dir3
> > Interface fxp0 IP-Address 216.136.204.57 Broadcast 216.136.204.127
> > load: 1.00  cmd: newfs 66 [block] 0.00u 0.01s 0% 640k
> > 
> > It looks like it's hanging at the point where it tries to create the
> > md filesystems.  I tried going back to kernels from 2-4 days ago, but
> > they all panic for various mutex-related reasons.
> 
> Adding the following early in etc/rc.d/initdiskless made things work for
> me (code stolen from initrandom):
> 
> > # XXX temporary until we can improve the entropy
> > # harvesting rate.
> > # Entropy below is not great, but better than nothing.
> > # This unblocks the generator at startup
> > ( ps -fauxww; sysctl -a; date; df -ib; dmesg; ps -fauxww; ) \
> >     | dd of=/dev/random bs=8k 2>/dev/null
> > cat /bin/ls | dd of=/dev/random bs=8k 2>/dev/null

Thanks, this works around the problem for me too.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040412/26803607/attachment.bin


More information about the freebsd-current mailing list