Date: Sun, 29 Apr 2001 14:18:48 +0200 From: Sven Huster <sven.huster@mailsurf.com> To: Brian Dean <bsd@bsdhome.com> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: diskless startup again Message-ID: <5.0.2.1.0.20010429141432.02849eb0@mx01.mailsurf.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.2.1.0.20010429141432.02849eb0>