From owner-freebsd-hackers Mon Apr 2 7:12:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id A31F137B71A for ; Mon, 2 Apr 2001 07:12:54 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.22 #1) id 14k54d-0002m6-00; Mon, 02 Apr 2001 16:12:51 +0200 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 14k54c-0001j2-00; Mon, 02 Apr 2001 16:12:50 +0200 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Luigi Rizzo Cc: Matt Dillon , freebsd-hackers@FreeBSD.ORG Subject: Re: new rc.diskless{1,2} files In-reply-to: Your message of Sun, 1 Apr 2001 23:10:38 +0200 (CEST) . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 Apr 2001 16:12:50 +0200 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200104012110.XAA43562@info.iet.unipi.it>you write: } http://www.iet.unipi.it/~luigi/clone_root.010401 nice, i just do rsh dump ...| restore but then again, im still experimenting :-) } }and basically nothing else. The modified copies of files which }have to replace the original ones in the root partition }are taken from /conf/${IP} or /conf/${SUBNET} or /conf, where }$IP and $SUBNET are the IP address and the local broadcast address }of the first configured network interface. The code in /etc/rc.diskless1 }tries to find the longest match from the above. } }This lets you centralize the configurations, and yet have }separate configuration files. it's not centralized when you start replicating the root-fs. }It helps a lot to have not just variable assignments in /etc/rc.conf }(typically a "case" statement to do per-machine settings.) i like that idea of /etc/rc.conf, one of the changes i did to rc.diskless1 was that it sources /conf/default/etc/* first - i can't remember why :-( if [ -d /conf/default/etc ]; then <--- cp -Rp /conf/default/etc/* $1 fi if [ -d /conf/${bootp_ipa} ] ; then ... elif [ -d /conf/${hostname} ] ; then <-- cp -Rp /conf/${hostname}/etc/* $1 now if I could just get /conf from some central repository ... A tool to do some central management is dhcp, the problem there is that most of the predefined tags are useless, and the ones needed are not easy to configure. I managed to used dhcp to select what kernel to load. Im also trying to set up a way to configure, say X11, and having the XF86Config saved from the volatile /etc danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message