Operating System - Linux
1819684 Members
3435 Online
109605 Solutions
New Discussion юеВ

Add Custom RPM's to KickStart cfg file

 
Pawan_1
Frequent Advisor

Add Custom RPM's to KickStart cfg file

We have ks.cfg file and we wanted to add custom's rpm in the process. Has somneone implemented the same.

-We are using iso images and Want the custom rpm's to be outside the iso images

Any help ?
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Add Custom RPM's to KickStart cfg file

I think that the easiest and quickest way will be use a %post section that will mount an NFS filesystem and install the custom rpm.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alexander Chuzhoy
Honored Contributor

Re: Add Custom RPM's to KickStart cfg file

You're absolutely right Ivan.
I have various kickstart cfg files for many several different installations and that's how I install additional rpms.
In %post section I mount a location that holds RPM packages (and lots of configuration files) and then I use rpm command (rpm -Uvh path/packagename) to install the packages.
Best practice is to test it on a pilot system first, so that you'll know what to expect in "real life".
Pawan_1
Frequent Advisor

Re: Add Custom RPM's to KickStart cfg file

Well do you have the syntax for the rpm installs over nfs in %post section ?

Thanks
Jerome Henry
Honored Contributor

Re: Add Custom RPM's to KickStart cfg file

It would be something like :
%post --nochroot
mkdir /mnt/temp
mount 10.0.0.1:/path/to/the/rpms /mnt/temp
rpm -ivh /mnt/temp/mypack.rpm
umount /mnt/temp


--nochroot is not mandatory in that case, but it may be safe to have it if you want to do more than these 5 lines.
hth

Jerome
You can lean only on what resists you...
Pawan_1
Frequent Advisor

Re: Add Custom RPM's to KickStart cfg file

Thanks