Want to create custom iso
Anant
anant.saraswat at techblue.co.uk
Sat Mar 22 08:14:25 UTC 2014
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 :)
More information about the Kickstart-list
mailing list