From owner-freebsd-stable Sun Apr 29 5:18:28 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by hub.freebsd.org (Postfix) with ESMTP id EF8E637B43C for ; Sun, 29 Apr 2001 05:18:24 -0700 (PDT) (envelope-from sven.huster@mailsurf.com) Received: from fwd06.sul.t-online.com by mailout02.sul.t-online.com with smtp id 14tq9Z-00019d-02; Sun, 29 Apr 2001 14:18:17 +0200 Received: from venus.mailsurf.com (320051988339-0001@[62.158.241.115]) by fmrl06.sul.t-online.com with esmtp id 14tq9W-23kJg8C; Sun, 29 Apr 2001 14:18:14 +0200 Message-Id: <5.0.2.1.0.20010429141432.02849eb0@mx01.mailsurf.com> X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 29 Apr 2001 14:18:48 +0200 To: Brian Dean From: Sven Huster Subject: Re: diskless startup again Cc: freebsd-stable@FreeBSD.ORG In-Reply-To: <20010426114534.A20360@vger.bsdhome.com> References: <5.1.0.14.0.20010426162542.02e1bec0@mx01.mailsurf.com> <5.1.0.14.0.20010425105221.02657d00@mx01.mailsurf.com> <5.1.0.14.0.20010425105221.02657d00@mx01.mailsurf.com> <20010425225249.B54548@vger.bsdhome.com> <5.1.0.14.0.20010426162542.02e1bec0@mx01.mailsurf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 320051988339-0001@t-dialin.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 17:45 26.04.2001, Brian Dean wrote: >*This message was transferred with a trial version of CommuniGate(tm) Pro* >On Thu, Apr 26, 2001 at 04:38:56PM +0200, Sven Huster wrote: > > ok, i did get the thing with diskless_mount, now ok. > > but diskless_mount is set in rc.diskless1, i think, and so not changeable > > in std config files (like rc.conf, but this will be copied in rc.diskless1) > > so i am not sure what to do. > >In /etc/rc, rc.diskless1 is executed and defaults diskless_mount to >rc.diskless2. By the time execution gets back to /etc/rc, the >/conf/*/etc overrides have been installed. It is at that point that >the rc.conf files are sourced. So, on a per host or network basis, >you can override diskless_mount to point to whatever you desire. sorry, i didnt recognize that rc.conf is included after rc.diskless1 is executed. so i put my local daemon setup in a other script run by rc via diskless_mount. one thing additional: if i start my diskless machine the hostname is already set, cause option host-name is included in my dhcpd.conf. shouldn't a hostname specific section exist in /conf maybe like for i in default ${bootp_ipbca} ${bootp_ipa} `hostname`; do if [ -d /conf/${i}/etc ]; then cp -Rp /conf/${i}/etc/* /etc fi done regards Sven Huster Senior IT Systems Administrator *BSD, Linux, Solaris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message