[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

prompt for hostname



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]