prompt for hostname
Kaushal Shriyan
kaushalshriyan at gmail.com
Thu Nov 19 15:37:44 UTC 2009
Hi,
I did comment out the network config line in ks.cfg file the
installation process did not prompt me for key in the hostname.
is there a way to handle this issue ?
How about in the %post section.
################################################################
%post
exec < /dev/tty6 > /dev/tty6
chvt 6
clear
echo "################################"
echo "# Running Post Configuration #"
echo "################################"
echo -n "Give hostname: "
read hostn
hostname $hostn
echo $hostn > /etc/hostname
###Go back to tty1##
exec < /dev/tty1 > /dev/tty1
chvt 1
################################################################
is there a better way to do it ?
Please suggest/guide
Thanks,
Kaushal
More information about the Kickstart-list
mailing list