cvs commit: src/etc/rc.d hostid

Brooks Davis brooks at FreeBSD.org
Tue May 22 17:29:40 UTC 2007


On Tue, May 22, 2007 at 10:07:03AM -0700, Doug Barton wrote:
>  Brooks Davis wrote:
> 
> > I'm not sure that's a bug.  Perhaps if it's too noisy.  There are
> > several other places that require a writable etc or require certain
> > files to be linked to somewhere writable.  Adding a note to the
> > diskless(8) manpage might be useful.
> 
>  I had a concern about this too, but didn't want to seem like I was loading 
>  up on this poor little script. :)  Would this be better placed in /var/db?

I think /etc or /boot is the right place and IIRC pjd had a reason why
/etc was right.  The problem with /var/db is that's it's not available
until fairly late in the boot and hostid is needed for non-root disks.

It's worth remembering that in the normal course of operation,
/etc/hostid is written once per system lifetime.  Making diskless users
set it up by hand or as a symlink to somewhere writable seems harmless
to me.

-- Brooks
-------------- 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/cvs-src/attachments/20070522/441d74f5/attachment.pgp


More information about the cvs-src mailing list