Kickstart set hostname issues FC5[Scanned]
chrisbradford at cambridge-news.co.uk
Mon Jul 3 14:43:53 UTC 2006
I'm trying to setup a way to manually enter a hostname as part of the
post install script in my Kickstart file. The process works, but the
hostname does not register on our DNS servers *unless* I enter it on the
Linux client under System > Administration > Network > Devices > Edit >
DHCP Settings > Hostname.
The script I am using is:
#switch to a virtual terminal
exec < /dev/tty3 > /dev/tty3
echo -n "Enter Hostname: "
cat << EOF >> /etc/sysconfig/network~
cat << EOF >> /etc/hosts~
127.0.0.1 $hostname localhost.localdomain localhost
mv /etc/hosts~ /etc/hosts
mv /etc/sysconfig/network~ /etc/sysconfig/network
#echo HOSTNAME=$hostname >> /etc/sysconfig/network
echo "Set Hostname....."
#Switch Back to tty1
exec < /dev/tty1 > /dev/tty1
The only thing I can assume is that the hostname is also stored in
another file? Everything works fine after I add the hostname into the
DHCP settings, until I do that the machine is unresolvable.
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
More information about the users