RHEL kickstart installs have the same problem... run "hostname correctsystemname" before running cfagent?
steve - - - > ---- Original Message ---- > From: Mark Burgess > $(host) is read from the kernel by a call to uname() > > Mark > > On Thu, 2005-02-17 at 14:02 -0800, Judith Lebzelter wrote: > > Hello; > > > > We run cfagent(2.1.10) as part of an installation using 'systemimager'. > > > The $(host) variable is getting the wrong value. The string it is > > getting seems to be the name of the temporary boot system from > > systemimager (SystemImager-autoinstall-system) rather than the system > > name that DHCP already knows about at that point (testdev2-002). > > > > > > Here is the beginning of the output from the run showing the incorrect > > host name: > > > > Reference time set to Wed Feb 16 18:00:17 2005 > > > > GNU Configuration Engine - > > 2.1.10 > > Free Software Foundation 1994- > > Donated by Mark Burgess, Faculty of Engineering, > > Oslo University College, 0254 Oslo, Norway > > > > ------------------------------------------------------------------------ > > > > Host name is: SystemImager-autoinstall-system > > Operating System Type is linux > > Operating System Release is 2.6.7 > > Architecture = i686 > > > > > > ----- > > > > > > > > These scripts work just fine on other distros ( RH-9.0, Suse-9.2) but n > ot > > on Gentoo. Also, once the newly installed system is rebooted, the scrip > ts > > do get the correct name, but this needs to work properly the first time. > > > > How is this variable being set by cfagent? Can (and should) I over-ride > > > the $(host) value on the command line? I cannot seem to find it in the > > docs. > > > > Thanks, > > Judith > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine