From owner-freebsd-current Fri Sep 6 3:14:13 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13A1A37B400 for ; Fri, 6 Sep 2002 03:14:11 -0700 (PDT) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A8D243E4A for ; Fri, 6 Sep 2002 03:14:10 -0700 (PDT) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g86AE5h05831; Fri, 6 Sep 2002 12:14:05 +0200 (MEST) Date: Fri, 6 Sep 2002 12:14:05 +0200 (CEST) From: Harti Brandt To: Harti Brandt Cc: Mike Makonnen , Subject: Re: rcNg messages In-Reply-To: <20020906105216.T6320-100000@beagle.fokus.gmd.de> Message-ID: <20020906115913.R6320-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 6 Sep 2002, Harti Brandt wrote: HB>Ok, thanks for the answer. Just another problem: I have a couple of HB>machines that boot diskless via DHCP and NFS. Up to now I set the hostname HB>of each of these machines in rc.conf.local. But this doesn't work anymore. HB>I tried to track the sourcing of the configure scripts, but rcNG is a HB>rather complex thing. A workaround is to supply the hostname via DHCP, but HB>that may not work for everyone and it does not help for the second HB>problem: I have HB> HB>network_interfaces="dc0 dc1 dc2 dc3 lo0" HB>ifconfig_dc0="up media 100basetx mediaopt full-duplex" HB>ifconfig_dc1="up media 100basetx mediaopt full-duplex" HB>ifconfig_dc2="up media 100basetx mediaopt full-duplex" HB>ifconfig_dc3="up media 100basetx mediaopt full-duplex" HB> HB>in my rc.conf.local and that used to work. But now it doesn't. So what HB>is the problem with rc.conf.local? It seems I found the problem. It turns out that rcNG is much more aggressive in not re-reading the rc_config_files if they were already red in. The problem with diskless boots is, that the first time, it tries to read the scripts (in rc itself), the rc.conf.local is not there. Later on (in initdiskless) it is copied to /etc, but the scripts remember that they already have sourced the config files and don't try it again. A workaround is to rename initdiskless to initdiskless.sh and to add the line unset _rc_conf_loaded after cp -Rp /conf/${i}/etc/* /etc around line 129. But that seems rather ugly to me. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message