Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 13:22:21 -0700
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: [src] cvs commit: src/etc/rc.d preseedrandom
Message-ID:  <20040607202221.GA46456@dragon.nuxi.com>
In-Reply-To: <20040607182216.GB28779@Odin.AC.HMC.Edu>
References:  <200406070916.i579GJLe052073@repoman.freebsd.org> <20040607091630.8659116A58E@hub.freebsd.org> <20040607182216.GB28779@Odin.AC.HMC.Edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 07, 2004 at 11:22:16AM -0700, Brooks Davis wrote:
> On Mon, Jun 07, 2004 at 09:16:30AM +0000, David E. O'Brien wrote:
> > obrien      2004-06-07 09:16:19 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     etc/rc.d             preseedrandom 
> >   Log:
> >   Don't assume everyone's /etc/[default/]rc.conf 'entropy_file' is "/entropy".
> 
> This was deliberate.  The preseedrandom script only exists to get
> enough entropy into the system to get initdiskless off the ground.
> Real entropy seeding takes place in initrandom.  You must not assume
> rc.conf exists when preseedrandom is called!  The only things you get to
> assume are a / as populated by installworld and an /etc as populated by
> make distribute.  At that /etc/rc.conf may not exist since it could be
> created by initdiskless.

Our diskless setup has become overly convoluted -- I still use the simple
Sun-style.  That said /etc/defaults/rc.conf is populated by 'make
installworld'.  We have a published interface (entropy_file="/entropy" #
Set to NO to disable caching entropy through reboots), and
'rc.d/preseedrandom' should be made to properly use it.

If some diskless environments are too broken to allow the published
interface, why can't hacks for them be added to 'rc.d/initdiskless'?

-- 
-- David  (obrien@FreeBSD.org)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040607202221.GA46456>