Howto-kickstart Anaconda adjustments

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

 



Vincent,

  I think I must have killed the people on this list asking all of the questions revolving around this.  So, it is my turn to answer.  :-)  Here is a copy of the %post section of my ks.cfg script that has what I believe you are looking for.  There are two things to note.  Thanks to Philip, Rob, and a RedHat tech, I believe Peter was his name, we have this working.  Philip suggested the exec command which was necessary for input.  The RedHat tech suggested the chvt command which allows you to see the prompt.  Both were the keys to making this work.  If you have any more questions about it, mail the list again and I would be glad answer whatever I can.

-Todd

%post
exec < /dev/tty3 > /dev/tty3
chvt 3
set -x
ls -l /proc/self/fd
mv /etc/resolv.conf /etc/resolvconf.old
echo "domain xxx.com" > /etc/resolv.conf
echo "nameserver w.x.y.z" >> /etc/resolv.conf
echo "nameserver w.x.y.z" >> /etc/resolv.conf
echo "search xyz.com" >> /etc/resolv.conf
mkdir /tools
mkdir /netdata
echo "netapp1-1:/vol/vol5/tools/linux   /tools          nfs" >> /etc/fstab
echo "netapp1-5:/vol/vol3       /netdata                nfs" >> /etc/fstab
mv /etc/ntp.conf /etc/ntpconf.old
echo "server w.x.y.z version 3" > /etc/ntp.conf
echo "server w.x.y.z version 3" >> /etc/ntp.conf
echo "Enter blast host number (1-34, etc.): \c"
read BLNUM
cat /etc/sysconfig/network | sed -e "s/^HOSTNAME.*/HOSTNAME=blast${BLNUM}/" > /etc/sysconfig/network.new
mv /etc/sysconfig/network.new /etc/sysconfig/network
cat /etc/sysconfig/network-scripts/ifcfg-eth0 | sed -e "s/^IPADDR.*/IPADDR=w.x.y.${BLNUM}/" > /etc/sysco
nfig/network-scripts/ifcfg-eth0.new
mv /etc/sysconfig/network-scripts/ifcfg-eth0.new /etc/sysconfig/network-scripts/ifcfg-eth0
mkdir -p /usr/tmp/asl
mount w.x.y.z:/vol/vol3/redhat/asl /usr/tmp/asl
# tar xPf /usr/tmp/asl/blast.tar
tar xPf /usr/tmp/asl/blast2.tar
mkdir -p /vol/lsf_data
ln -s /netdata/lsfdata /vol/lsf_data/Proteome
ln -s /etc/rc.d/init.d/lsf /etc/rc.d/rc3.d/S99lsf
chkconfig --add blast
chkconfig --add bigbro
chkconfig --add lsf
chkconfig --level 345 blast on
chkconfig --level 345 bigbro on
chkconfig --level 345 lsf on
chmod 644 /var/log/messages
umount /usr/tmp/asl
 
 

Vincent Bodenstab wrote:

Hi Kickstarters,

A little question: I want to install a system using a kickstart profile. Now,
I want the system to use networking with a static IP adres. I don't want
to edit the ks.cfg everytime with the right IP address, but I want Anaconda
to raise a window asking me for it. I have already gone through the Anaconda
code, but I can't seem to find the piece that handles this. Do anyone have a clue
or tips on how to handle this? Any help is greatly appreciated.

Vincent Bodenstab

_______________________________________________
Howto-kickstart mailing list
Howto-kickstart@xxxxxxx
http://mail.gnu.org/mailman/listinfo/howto-kickstart

-- 
------------------
Todd Chilson
Desktop Support
Incyte Genomics
Tel # 978-816-0226
------------------
 
-- 
------------------
Todd Chilson
Desktop Support
Incyte Genomics
Tel # 978-816-0226
------------------
 

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux