#cat c6mini.ks
lang zh_CN.UTF-8keyboard us
timezone --utc Asia/Shanghai
auth --useshadow --enablemd5
selinux --enforcing
firewall --service=ssh
#################文件系统格式
part / --size 4096 --fstype ext4
services --disabled=firstboot,network
repo --name=base --baseurl=http://dl.hong.tao/DVD/CentOS/old-6
#########不含@base ####排除文档
%packages --nobase --excludedocs
@core
#需要的包
%end
%post
#!/bin/bash
#在生成的子系统里
%end
%post --nochroot
#!/bin/bash
#在母系统里
########非常重要的两个参数
echo LIVE_ROOT=$LIVE_ROOT
echo INSTALL_ROOT=$INSTALL_ROOT
%end