Operating System - Linux
1832511 Members
5022 Online
110043 Solutions
New Discussion

Re: KickStart PostInstall

 
K.C. Chan
Trusted Contributor

KickStart PostInstall

All,
I want to install updates rpm after installing RH Linux via kickstart. How would I mount this and run the rpm installs command during postinstalls (How would I enter this command in the postinstalls section?). I want to also untar my apps as well. Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
2 REPLIES 2
Stuart Browne
Honored Contributor

Re: KickStart PostInstall

How are you doing the install? via NFS?

If so, you'll just be able to mount your NFS path using standard mount commands, and then 'rpm -Fvh /path/to/eratta/*.rpm'.

Same goes for the files you wish to un-tar.

The commands are entered into a %post section of the kick-start configuration, and are exected in a chroot environment of the destination volume.

If you dig up the RedHat Customisation guide, it has a section on KickStart which goes over all of this (i.e. http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-kickstart2-postinstallconfig.html)
One long-haired git at your service...
Justin Davinroy
New Member

Re: KickStart PostInstall

I've been working on a similar issue for updating the kernel as a post install kickstart option utilizing RPMs. I'm still burning the modified install CD (RedHat Linux 6.2), so I'm T-20 minutes from actually testing this out. Here is some %post install gibberish that might help you out:

#Do this first before %post
%post --nochroot

#Create a directory on the newly created
#system image for your RPMs (on cd)
mkdir /mnt/sysimage/myRPMs

#Copy RPMs from your CD to the system image
cp /mnt/source/myRPMs_on_CD/*.rpm /mnt/sysimage/myRPMs

%post

#Finally, install the RPMs
rpm -ivh /myRPMs/*.rpm

Again, I haven't had the chance to test this out yet, but I hope it helps. More to come...