[Ilugc] Re: Doubt with kickstart file..

  • From: sriram@xxxxxxxxxxxxx (P.Sriram)
  • Date: Thu Mar 15 10:44:35 2007

Sivaram <sivaramsk@...> writes:

Actually I want to modify the kickstart file, so that in the post 
installation it will unmount the last installation cd and eject it, ask 
for another custom cd(similar to how the anaconda handles ejecting the 
1st cd and asks the 2nd cd), which will install some software and then 
system will reboot.

Is this possible to do? any pointers??


yeah, you have got many replies, but the answers seemed a bit peripheral to me.
here is a cut and paste from my ks.cfg that i used for rhl8.

%post
#turn on ntpd
/sbin/chkconfig --level 345 ntpd on 
#local software installation
#make temp directory
mkdir /mnt/temp
#nfs mount local software tree
mount dcfserver:/home/rhl8 /mnt/temp
cd /mnt/temp/updates
#update all packages using freshen option
rpm -Fvh *rpm
#update kernel using install option
cd kern
rpm -ivh kern*
#delete old kernel
rpm -e kernel-2.4.18-14
#copy local config files
cd ../files
cp -f resolv.conf /etc/resolv.conf
cp -f ntp.conf /etc/ntp.conf
#install local software
cd ../../extras
rpm -Uvh *
#all done, cleanup
cd /mnt
umount /mnt/temp
rmdir temp
#z end



Other related posts: