I'm a Solaris guy fairly new to RedHat, and I'm hoping I can get a little help in getting my kickstart %post syntax correct for adding rpms and a few other simple tasks. Some basic info to start:
Thanks in advance for your help!
I'm building a Dell 650
I'm using RedHat 7.3
I'm using the bootnet.img off a local floppy
The /local filesystem is NFS shared from 10.14.1.40
On startup I type: linux ks=nfs:10.14.1.40:/local/RedHat-7.3/RedHat/ks.cfg
The install works like a charm, but my %post seems to fail completely. I'm clearly missing some understanding of what the filesystem looks like during the installation, and how my commands and directory paths must look under the chroot environment.
The %post is the last section in my ks.cfg file, and looks like this:
#Post-Install
%post --nochroot
#Install and/or update RPMs
mkdir /mnt/a
mount 10.14.1.40:/local /mnt/a
echo "Installing apt-get RPM..."
chroot /mnt/sysimage rpm -ivh /mnt/a/rpms/apt-0.5.4cnc9-fr0.1.rh73.i386.rpm
echo "Done."
#Make sure ypbind is going to start right
chkconfig --level 345 ypbind on
#Set the date
rdate -s 198.22.90.55
#Copy in an autofs file with the tcp option intact
chroot /mnt/sysimage cp /mnt/a/RedHat-7.3/RedHat/autofs /etc/init.d/autofs
#add comment to /etc/motd
chroot /mnt/sysimage echo "Kickstart-Installed Red Hat Linux `/bin/date`" >> /etc/motd
Eric Lambert