On 2014-03-22 09:14, Anant wrote:
Hi Guys,
I have made custom Centos DVD , I have copied ks.cfg in top
directory of
my DVD. and it is working fine.
My ks.cfg looks like :
%post --log=/root/my-post-log
yum remove libreoffice* -y ;
/usr/bin/wget
http://210.X.X.52/LibreOffice_4.1.5_Linux_x86-64_rpm.tar.gz ;
tar -xvzf LibreOffice_4.1.5_Linux_x86-64_rpm.tar.gz ;
cd LibreOffice_4.1.5.3_Linux_x86-64_rpm/RPMS/ ;
yum install *.rpm -y ;
%end
I am downloading LibreOffice_4.1.5_Linux_x86-64_rpm.tar.gz from
210.X.X.52 , which consume bandwidth each time , So i want to keep
this
package in side my DVD,
So i need Suggestion how can i do that , and access it on POST
script
run time.
Like how can i mount my dvd in any /tmp folder OR any suggestion..
I tried that also
%post --nochroot --log=/mnt/sysimage/root/my-post-log
#!/bin/bash
# Copying EXTRAS folder from CDROM to /root/EXTRAS
mkdir /tmp/c
mount -t iso9660 /tmp/cdrom /tmp/c
mkdir -p /mnt/sysimage/root/EXTRAS
cp -arv /tmp/c/Packages/Ex/* /mnt/sysimage/root/EXTRAS
umount /tmp/c
%end
But it gives me /tmp/cdrom doesnt exist . So where was cdrom
mounted during installation
Thanks in Advance :)
I would suggest to you that you replace the LibreOffice RPM on the
DVD and then rebuild the comps.xml
Example: http://markliggett.wordpress.com/2009/11/30/custom-installation-centosrhel-dvd/
And for your kickstart %post
work, what does /mnt/sysimage/root/my-post-log
say ?
/Mats
--
Mats Karlsson
|
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list