Re: Want to create custom iso

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

 



Hello Mats,

Actully i have tried that but I have 2 hurdels in fron of me

1. Unable to resolve dependencies
2. I have to do many things in my Post scripts , which dont have RPMs , let me attach my ks.cfg for you , So what i am thinking is Paste that all setup files in DVD and use it at post installation time.


On Saturday 22 March 2014 02:27 PM, Mats Karlsson wrote:
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


-- 
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.
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
# Root password
rootpw --iscrypted $1$dhu1TB4O$tjyh3QeX0.eOwPuu7ceYz/
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use graphical install
graphical
firstboot --enable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone  Asia/Kolkata
# Network information
network --device=eth0 --bootproto=dhcp
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all  


%packages  --ignoremissing
@base
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@fonts
@general-desktop
@graphical-admin-tools
@input-methods
@internet-applications
@internet-browser
@java-platform
@legacy-x
@network-file-system-client
@office-suite
@print-client
@remote-desktop-clients
@server-platform
@server-policy
@workstation-policy
@x11
mtools
pax
oddjob
wodim
sgpio
genisoimage
device-mapper-persistent-data
abrt-gui
samba-winbind
certmonger
pam_krb5
krb5-workstation
libXmu
rpmforge*
epel*
adobe*
puias*
russianfedora*

%post --nochroot --log=/mnt/sysimage/root/my-post-log
exec < /dev/tty3 > /dev/tty3
chvt 3
#!/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 -rvf /tmp/cdrom/* /mnt/sysimage/root/EXTRAS
cp -arv /tmp/c/Packages/Ex/* /mnt/sysimage/root/EXTRAS
umount /tmp/c
setenforce 0;
ls -R1 / |    while read l; do case $l in *:) d=${l%:};; "") d=;; *) echo "$d/$l";; esac; done  >> /mnt/sysimage/root/test ;
ls -mR / | sed -n 's/://p' >  /mnt/sysimage/root/test1 ;

sleep 300 ;
chvt 1 
%end
_______________________________________________
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