How to Customize Centos DVD using Kickstart file
================================================
Here i am using CentOS 64 Bit OS to customize that.
1. Create a kickstart file with postscript and packages list
# yum install system-config-kickstart
# system-config-kickstart
# save as ks.cfg
2. Mount that DVD into /mnt
# mount -o loop /dev/cdrom /mnt ( If it is in DVD )
# mount -o loop /opt/ISO/centos_5.5_64bit_final.iso /mnt ( It is an ISO File )
3. Create a Dir for ISO Editing
# mkdir /opt/newbuild
4. Copy all the contents from /mnt to /opt/newbuild
# cp -R /mnt/* /opt/newbuild
5. Edit the isolinux.cfg in newbuild Dir
# vim /opt/newbuild/isolinux/isolinux.cfg
default linux
prompt 0
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/ks.cfg ( Add this entry in this line )
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks initrd=initrd.img
label local
localboot 1
label memtest86
kernel memtest
append -
6. Modify the permission of ks.cfg file
# chmod 755 ks.cfg
7. Copy the ks.cfg file to newbuild Dir
# cp ks.cfg /opt/newbuild
8. Install mkisofs to make ISO
# yum install mkisofs
9. Make Customized ISO
# mkisofs -o CentOS-5.5_64_Kickstart.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T .
10. Now ISO is ready
Write the CentOS-5.5_64_Kickstart.iso file in DVD
good afternoon sir
ReplyDeletei wnat to configure centos in less than or equal to 400 mb how to do ?
pls suggest me
mohd.imran2008@yahoo.com