1) 拷贝isolinux目录(注意改了目录的名称,以便syslinux能正常工作)cp –a /mnt/iso/isolinux /mnt/usb1/syslinux 2) 拷贝anaconda-ks.cfg文件(任何安装完成的centos系统都会在/root目录自动生成这个文件)cp /root/anaconda-ks.cfg /mnt/usb13) 拷贝dvd镜像文件cp /root/CentOS-5.3-i386-bin-DVD.iso /mnt/usb24)改文件名 /mnt/usb1/syslinux/isolinux.cfg为/mnt/usb1/syslinux/syslinux.cfg
mv /mnt/usb1/syslinux/isolinux.cfg /mnt/usb1/syslinux/syslinux.cfg
|
default linux
prompt 1
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
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks=hd:sdb1:/anaconda-ks.cfg initrd=initrd.img
label local
localboot 1
label memtest86
kernel memtest
append -
|
# Kickstart file automatically generated by anaconda.
install
harddrive --partition=sdb2 --dir=
lang en_US.UTF-8
keyboard us
text
rootpw 123456
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc America/New_York
bootloader --location=partition --driveorder=sda
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux
part / --fstype ext3 --size=20000
part /var --fstype ext3 --size=20000
part /usr --fstype ext3 --size=20000
part /data --fstype ext3 --size=1 --grow
part swap --size=4096
%packages
@development-libs
@system-tools
@core
@base
@network-server
@admin-tools
@development-tools
audit
kexec-tools
device-mapper-multipath
imake
|