1. 将centos6.2的iso挂载到系统:如:
mount -o loop /dev/cdromm /media
2. 将/media整个目录复制出来:
cp -a /media/ /mnt/cs62/
cd /mnt/cs62/
find -type f -name "TRANS.TBL" |xarg rm -f
此步需要注意:在/mnt/cs62/下面会有media整个目录,并且需要注意是否有.treeinfo与.discinfo这两个隐藏文件。
3. 创建kickstart文件:
#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$nDbdT52O$TwVubYpo6REsUudygdBpH0
# System authorization information
auth --useshadow --passalgo=sha512
# Use text mode install
text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US.UTF-8
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# System timezone
timezone Asia/Hong_Kong
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part /boot --fstype="ext4" --size=500
#part / --fstype="ext4" --size=26000
#part /data --fstype="ext4" --size=1 --grow
#part swap --fstype="swap" --size=1024
part pv.2 --size=5000 --grow
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=2048
skipx
%packages
@additional-devel
@base
@basic-desktop
@chinese-support
@client-mgmt-tools
@compat-libraries
@console-internet
@debugging
@desktop-debugging
@desktop-platform
@development
@emacs
@fonts
@ftp-server
@general-desktop
@graphical-admin-tools
@graphics
@input-methods
@internet-applications
@internet-browser
@kde-desktop
@large-systems
@legacy-unix
@legacy-x
@network-file-system-client
@network-server
@network-tools
@nfs-file-server
@performance
@perl-runtime
@print-client
@remote-desktop-clients
@scalable-file-systems
@scientific
@server-platform
@server-platform-devel
@storage-client-iscsi
@system-admin-tools
@system-management
@system-management-messaging-client
@system-management-messaging-server
@system-management-snmp
@technical-writing
@tex
@x11
compat-openmpi
compat-openmpi-psm
net-snmp-perl
net-snmp-python
nmap
watchdog
xfsprogs-devel
xfsprogs-qa-devel
%end
4.删除boot.cat文件
rm -rf /mnt/cs6/media/isolinux/boot.cat
chmod +w ./isolinux/*
5. 修改isolinux.cfg文件:
default vesamenu.c32
#prompt 1
timeout 60
display boot.msg
menu background splash.jpg
menu title Welcome to Arkologic 6.2 !
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000
label arkologic
menu label ^Install MyCentOS system
menu default
kernel vmlinuz
append ks=cdrom:/ks.cfg initrd=initrd.img
label linux
menu label ^Install or upgrade an existing system
kernel vmlinuz
append initrd=initrd.img
label vesa
menu label Install system with ^basic video driver
kernel vmlinuz
append initrd=initrd.img xdriver=vesa nomodeset
label rescue
menu label ^Rescue installed system
kernel vmlinuz
append initrd=initrd.img rescue
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -
6. 创建ISO文件:
mkisofs -o ../mycs62.iso -J -r -v -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "My CentOS6 Install DVD" .
阅读(3471) | 评论(0) | 转发(0) |