在使用cobbler或PXE安装系统的时候,在安装系统前关于raid卡的配置,ipmi的配置等都需要登入主机先手动配置,那有什么可以使用脚本来做这些东西呢?大家一定会想到winpe,那linux有什么呢?Linux有一个LiveCD,但是公共的LiveCD很多没有像MegaRAID,ipmitools等工具,那我们只有自己来定制LiveCD
1.  安装制作环境
添加yum源:

[livecd]
name = CentOS $releasever - LiveCD
baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
enabled=1
protect=0
gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay2010
yum install livecd-tools syslinux anaconda-runtime



2. 编写kickstart脚本      

lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selin