Most of them have the same content.
So I tried to separate the same part into a file
And include them if I need it.
install
skipx
text
#cmdline
## install source
url --url=http://{{server}}/distro/centos/6.5/x86_64
## include common install setting
%include http://{{server}}/kickstart/install.ks
## disk operation
zerombr yes
bootloader --location=mbr --append="rhgb quiet"
clearpart --all --initlabel
autopart
%packages
## include common package list
%include http://{{server}}/kickstart/packages.ks
%post
## include commom post script
%include http://{{server}}/kickstart/post.ks
## include some category post script
%include http://{{server}}/kickstart/post-some-category.ks
## write your special script here
echo "done!!"
%end
沒有留言:
張貼留言