Want to create custom iso

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 :)





_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux