From owner-freebsd-hackers Sun Apr 13 13:42:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA23234 for hackers-outgoing; Sun, 13 Apr 1997 13:42:43 -0700 (PDT) Received: (from jmb@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA23222; Sun, 13 Apr 1997 13:42:30 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199704132042.NAA23222@freefall.freebsd.org> Subject: Re: on the subject of changes to -RELEASEs... To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Sun, 13 Apr 1997 13:42:30 -0700 (PDT) Cc: fullermd@narcissus.ml.org, giles@nemeton.com.au, jkh@time.cdrom.com, hackers@FreeBSD.org In-Reply-To: <199704131157.NAA23250@labinfo.iet.unipi.it> from "Luigi Rizzo" at Apr 13, 97 01:56:59 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Luigi Rizzo wrote: > > > 2. edit /etc/sysconfig to contain shell HERE documents. > > if a shell variable is set (CONFIGETC ?) then and only then > > are the HERE documents used to replace the contents of the > > files in /etc. the location _does_not_chnage_. > > > > to clone a box, all you would need to do is copy /etc/sysconfig > > to another computer and set CONFIGETC in /etc/sysconfig. > > i see two minor difficulties here, i) /etc/sysconfig might be run several > times at boot time since different files might need its variables, and > ii) a way is needed to make sysconfig reflect changes to the various > files. The first is only (hopefully) a problem of efficiency, the > second means that you cannot really clone a system using this method. people have been clamouring for a shutdown script. creating the HERE documents in /etc/sysconfig (when this option is enabled) could be one of the tasks of the shutdown script. jmb