RedHat Kickstart question

Ulf Zimmermann ulf at Alameda.net
Wed Apr 16 16:34:53 PDT 2003


Hello everyone.

I got a question someone probably has an answer for on this list.
Working on automating system installs. Everything on these machines
is the same, with the exception of 2 things. IP address and hostname.

Machines get static IP assigned via DHCP. Can I find out, like in the
%pre section or so, what the IP is, so that I can use it in this line:

#Use static networking
network --bootproto static  --ip 10.200.1.51  --netmask 255.255.255.0  --gatewa...

And the other section is in %post, where based on the hostname I 
would like to copy a different set of files over, simular like this:

if [-f /mnt/tmpmnt/ssh/$HOST/ssh_host_dsa_key]; then
  /bin/cp /mnt/tmpmnt/ssh/$HOST/* /etc/ssh
fi

Any tips ?

-- 
Regards, Ulf.

---------------------------------------------------------------------
Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204
You can find my resume at: http://seven.Alameda.net/~ulf/resume.html



More information about the Baylisa mailing list