Centos 6.2 minimal install kickstart file

Centos 6.2 minimal install kickstart file

Centos 6.2 minimal install kickstart file 150 150 Roderick Derks

I use this kickstart file to install Centos 6.2 with a minimal install, SELinux disabled and uninstalled, 1GB of swap space on a 20GB drive.

 

# Kickstart file generated by Roderick Derks.
# Centos 6.2
# Very Minimal Install on a 20GB drive (created for Zimbra using EXT4)

#version=DEVEL
install
url --url http://192.168.0.1:8080/Centos_6.2-x86_64/
lang en_US.UTF-8
keyboard us
timezone --utc Europe/Amsterdam
rootpw  --iscrypted $6$AFQ9hKwPBKDUZwXd$diDiNdps6UI7G3D4mbK/fhpg.ER0RovPd4c5zKLHXjv7APZ7/rDAcDSvpFa2CBqq9rEdyZHYw/eY13EON.
selinux --disabled
firewall --disabled
#firewall --enabled --ssh --http
services --disabled=postfix,iptables,ip6tables
authconfig --enableshadow --passalgo=sha512 --enablefingerprint

#ask for network config during installation
#network --device=eth0 --bootproto=query

reboot

bootloader --location=mbr --driveorder=sda --append="acpi=off"
clearpart --all --drives=sda
part /boot --fstype ext3 --size=500 --ondisk=sda
part pv.6 --size=1 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.6
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=500 --grow --maxsize=1000
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=18976 --grow

#%packages
#@core
%packages --nobase --excludedocs --instLangs=en
bzip2
crontabs
dhclient
logrotate
openssh
openssh-clients
openssh-server
pam_passwdqc
sudo
perl
tcpdump
telnet
wget
which
yum
-audit-libs-python
-checkpolicy
-dhcpv6-client
-ecryptfs-utils
-ed
-file
-gnu-efi
-gpm
-hdparm
-kbd
-libhugetlbfs
-libselinux-python
-libsemanage
-nspr
-nss
-policycoreutils
-prelink
-selinux-policy
-selinux-policy-targeted
-setools
-setserial
-sysfsutils
-tcl
-udftools
-vim-enhanced
-atmel-firmware-1.3-7.el6.noarch
-b43-openfwwf-5.2-4.el6.noarch
-cronie-1.4.4-2.el6.i686
-cronie-anacron-1.4.4-2.el6.i686
-crontabs-1.10-32.1.el6.noarch
-ipw2100-firmware-1.3-11.el6.noarch
-ipw2200-firmware-3.1-4.el6.noarch
-ivtv-firmware-20080701-20.2.noarch
-iwl1000-firmware-128.50.3.1-1.1.el6.noarch
-iwl3945-firmware-15.32.2.9-4.el6.noarch
-iwl4965-firmware-228.61.2.24-2.1.el6.noarch
-iwl5000-firmware-8.24.2.12-3.el6.noarch
-iwl5150-firmware-8.24.2.2-1.el6.noarch
-iwl6000-firmware-9.176.4.1-2.el6.noarch
-iwl6050-firmware-9.201.4.1-2.el6.noarch
-libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
-xorg-x11-drv-ati-firmware
-mysql-libs-5.1.47-4.el6.i686
-postfix-2.6.6-2.el6.i686
-rt61pci-firmware-1.2-7.el6.noarch
-rt73usb-firmware-1.8-7.el6.noarch
-sudo-1.7.2p2-9.el6.i686
-sysstat-9.0.4-11.el6.i686
-zd1211-firmware-1.4-4.el6.noarch
-info

%post
rpm -e $( rpm -qa \*firmware | grep -v kernel)
yum -y remove audit authconfig checkpolicy libsemanage libselinux-utils policycoreutils selinux-policy selinux-policy-targeted
rm -rf /etc/selinux/targeted
rpm -e --nodeps redhat-logos

%end

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message