Hello Guys,
I have solved my problem myself, I copied required packages in Packages folder of DVD, and ks script on the top directory of DVD, and burn it .
I have copied my packages from DVD to new chrooted OS , and intalled in chrooted OS. like this.
%post --nochroot --log=/mnt/sysimage/root/my-post-log mount -t iso9660 /tmp/cdrom /tmp/c mkdir -p /mnt/sysimage/opt/EXTRAS chmod -R 755 /mnt/sysimage/opt/EXTRAS ; cp -arvf /mnt/source/Packages/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm /mnt/sysimage/opt/EXTRAS
%post --log=/root/my-post2-log exec < /dev/tty3 > /dev/tty3 chvt 3 rpm -ivh rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm ; chvt 1 %end
So I run 2 times post script one to copy data from DVD to new OS , and 2nd to install it.
Thanks for all your help. Cheers,
Anant
On Friday 21 March 2014 10:31 PM, 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 can i mount my dvd in any /tmp folder OR any suggestion..
Thanks in Advance :)
On Monday 17 March 2014 11:34 PM, Earl A Ramirez wrote:
On 17 March 2014 12:51, EljiUdia eljiudia@yahoo.com wrote:
On Monday, March 17, 2014 6:41 PM, Anant anant.saraswat@techblue.co.uk wrote:
Hello All,
I want to make custom iso of Centos 6.4 and want some feature in it by default
Take a look here http://smorgasbork.com/component/content/article/35-linux/128-building-a-cus... odesk.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
The following link [0] may help you with what you are trying to achieve.