挂载安装光盘
完全复制安装光盘下的所有文件到某个目录
例如 cp -r /dev/cdrom/ /tmp/myiso/
拷贝应答文件ks_file到/tmp/myiso/ksdir
cp ks_file /tmp/myiso/ksdir
编辑菜单文件
vim /tmp/myiso/isolinux/isolinux.cfg
default vesamenu.c32
#prompt 1
timeout 600
display boot.msg
menu background splash.jpg
menu title Welcome to CentOS 6.9! --> 修改标题
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 linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img
label vesa
menu label Install system with ^basic video driver
kernel vmlinuz
append initrd=initrd.img 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 -
修改label
label local --> 设置默认启动为本地磁盘系统(如果有的话)
menudefault
menu label Boot From ^local drive
localboot 0xffff
label desktop
menu label Install an ^desktop system
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/PATH/TO/ks_file --> 加上ks 应答
label mini
menu label Install ^mini system
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/PATH/TO/ks_file --> 加上ks应答