RHEL5 minimalist kickstart http install

Download Template
Minimal kickstart template. Avoids the ginourmous @base package set in favor of the basics of yum and openssh-server.

evilensky
July 26, 2012
URL of RHEL5 install tree

System Hostname

Volume group name

Password in MD5

install
text
url --url %{URL}%
key --skip
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp --hostname %{HOSTNAME}%
rootpw --iscrypted %{passwd_hash}%
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc America/Chicago

zerombr
part /boot --fstype ext3 --onpart sda1
part pv.2 --onpart sda2
volgroup %{vgName}% --pesize=32768 pv.2
logvol swap --fstype swap --name=lvSwap --vgname=%{vgName}% --size=1008 --grow --maxsize=2016
logvol / --fstype ext3 --name=lvRoot --vgname=%{vgName}% --size=1024 --grow


bootloader --location mbr

%packages --nobase
@core
openssh-server
yum-utils
wget
iptables
dhclient
yum-rhn-plugin

%pre

parted -s /dev/sda rm 1  # remove all primary partitions
parted -s /dev/sda rm 2
parted -s /dev/sda rm 3
parted -s /dev/sda rm 4
parted -s /dev/sda mkpart primary ext3 128s 409727s

parted -s /dev/sda mklabel msdos #creates partitions aligned for VMFS and 4K divisible storage (NetApp).
parted -s /dev/sda mkpart primary ext3 64s 208718s
parted -s /dev/sda mkpart primary 208848s 100%
parted -s /dev/sda set 2 lvm on
%end

You must be logged in to comment.