Re: Want to create custom iso

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



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@xxxxxxxxx> wrote:
>>
>>>
>>> On Monday, March 17, 2014 6:41 PM, Anant <anant.saraswat@xxxxxxxxxxxxxx>
>>> 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-custom-centos-6-kickstart-disc-part-1or
>>> odesk.com
>>> _______________________________________________
>>> CentOS mailing list
>>> CentOS@xxxxxxxxxx
>>> http://lists.centos.org/mailman/listinfo/centos
>>>
>> The following link [0] may help you with what you are trying to achieve.
>>
>> [0] http://centos.org/variants/
>>
>>
>>
>


-- 
Anant Saraswat
System Admin (RHCVA,RHCE,RHCSA)

FOR AND ON BEHALF OF:
Techblue Software Pvt. Ltd.
73, Sector-5
IMT Manesar
Haryana

E: anant.saraswat@xxxxxxxxxxxxxx
W: www.techblue.co.uk


The contents of this email are confidential and may be privileged, and are intended only for the use of the person or company named herein. Any views or opinions presented are solely those of the author and do not necessarily represent those of Technology Blueprint Limited.
If you are not the intended recipient of this email or a person responsible for delivering it to the intended recipient, you are hereby notified that any distribution, copying or dissemination of the information herein is strictly prohibited.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux