Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 1997 19:08:25 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        jkh@time.cdrom.com (Jordan K. Hubbard)
Cc:        jmb@freefall.freebsd.org, imp@village.org, hackers@freebsd.org
Subject:   Re: on the subject of changes to -RELEASEs...
Message-ID:  <199704111708.TAA19618@labinfo.iet.unipi.it>
In-Reply-To: <1928.860777443@time.cdrom.com> from "Jordan K. Hubbard" at Apr 11, 97 09:50:24 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > 	how about creating HERE documents *inside* sysconfig which create
> > 	/etc/resolv.conf, /etc/hosts, /etc/namedb.boot, ......
> 
> So they'd be regenerated each time you booted up?
> 
> Hmmmm.  That's not such a terrible idea, actually, just so long as the
> here documents were wrapped around:
> 
> 	if [ -w /etc/targetfile ]; then
> 		.. here document which writes on it ...
> 	fi
> 
> So that you could handle the read-only-root case.  I kinda like it!
> What do others thing?

see my other posting on the subject. It has some value, expecially
for small files such as resolv.conf, host.conf , hosts, ... but
when it comes to large or binary files you are screwed.

Besides, you can burn yourself with this feature when you make a
change to the /etc/xxx file and forget to disable writing to it...

	Luigi
-----------------------------+--------------------------------------
Luigi Rizzo                  |  Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it    |  Universita' di Pisa
tel: +39-50-568533           |  via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522           |  http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________



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