The minimal kickstart file

From WBITT's Cooker!

Jump to: navigation, search

(The root password is "redhat")

# cat /var/www/html/minimal.ks

install
text
lang en_US.UTF-8
keyboard us
key --skip
url --url http://192.168.122.1/CentOS-5.4-x86_64/
network --device eth0 --bootproto dhcp --hostname minivm
rootpw  --iscrypted $1$VQPyk3Ev$JePfY50WaA.aBhKT3xsBq.
firewall --disabled
authconfig --enableshadow  --enablemd5
selinux --disabled
timezone Asia/Riyadh
zerombr
bootloader --location=mbr  --append=""
clearpart --all --initlabel
# I prefer you create a minimal 3GB disk for the minimal install.
part / --fstype=ext3 --size=200 --grow
part swap --fstype=swap --size=256
reboot

%packages
@core
wget
yum

%post
chkconfig --level 35 sendmail off
chkconfig --level 35 cups off

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-*

cat > /etc/yum.repos.d/centos-local.repo << YUMEOF
[centos-local]
name=CentOS-Local $releasever - $basearch
baseurl=http://192.168.122.1/CentOS-5.4-x86_64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

YUMEOF
Personal tools