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
pgpZak4eMmr3l.pgp
Description: PGP signature