Chapter 11. Bare Metal Installation
148
selinux --permissive
timezone --utc Europe/London
bootloader --location=mbr --driveorder=sda
clearpart --initlabel --linux --drives=sda
part /boot --fstype ext3 --size=500 --ondisk=sda
part pv.2 --size=1 --grow --ondisk=sda
volgroup vg00 --pesize=32768 pv.2
logvol swap --fstype swap --name=swap00 --vgname=vg00 --size=1024
logvol / --fstype ext3 --name=lv00 --vgname=vg00 --size=2560
#repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/6/x86_64/
repo --name=cs-scurity --baseurl=http://nfs1.lab.vmops.com/baremetal/securitygroupagentrepo/
reboot
%packages --ignoremissing
@base
@core
libmnl
wget
cloud-baremetal-securitygroup-agent
%post
#really disable ipv6
echo "install ipv6 /bin/true" > /etc/modprobe.d/blacklist-ipv6.conf
echo "blacklist ipv6" >> /etc/modprobe.d/blacklist-ipv6.conf
yum -y install libmnl
11.3.19. Example Fedora 17 Kickstart File
# install, not upgrade
install
# Install from a friendly mirror and add updates
url --url=http://10.223.110.231/baremetal/fedora17/
repo --name=updates
# Language and keyboard setup
lang en_US.UTF-8
keyboard us
# Configure DHCP networking w/optional IPv6, firewall on
# network --onboot yes --device eth0 --bootproto dhcp --ipv6 auto --hostname fedora.local
network --bootproto=dhcp --onboot=yes --hostname=baremetal-test --noipv6
firewall --service=ssh
# Set timezone
timezone --utc Etc/UTC
# Authentication
rootpw password
authconfig --enableshadow --passalgo=sha512
autopart