summaryrefslogtreecommitdiffstats
path: root/genome-respin/repo/conf.d/genome-ks.cfg
blob: 8b56e05b3e313fd248be0891b440977df645cf36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Use text install
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# Network Manager breaks networking on F8
services --disabled=NetworkManager
# System keyboard
keyboard us
# System language
lang en_US
# Use CDROM installation media
cdrom
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot --eject
# Root password
rootpw password

# SELinux configuration
selinux --disabled
# Skip X Configuration
skipx
# System timezone
timezone  America/New_York
# Install OS instead of upgrade
install

# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
partition /boot --fstype=ext3 --size=200
partition swap --size=2000
partition pv.01 --size=1000 --grow
volgroup HostVolGroup00 pv.01
logvol swap --fstype swap --name=Swap --vgname=HostVolGroup00 --size=1024
logvol / --fstype ext3 --name=Root --vgname=HostVolGroup00 --size=10240 --grow
logvol /home --fstype ext3 --name=Home --vgname=HostVolGroup00 --size=2048

%packages
kernel
vim-enhanced
yum
-yum-updatesd
genome-repo
rubygem-genome-bootstrap

%post

# Identify this machine as a Genome respin
/bin/touch /etc/sysconfig/genome-respin

# Chkconfig the bootstrap script
/sbin/chkconfig --add genome-repo-bootstrap
/sbin/chkconfig genome-repo-bootstrap on

# Determine the operating system release and version
if [ "`grep 'Red Hat' /etc/redhat-release`" != "" ]; then
  export RELEASE="RHEL"
elif [ "`grep 'CentOS' /etc/redhat-release`" != "" ]; then
  export RELEASE="CentOS"
else
  export RELEASE="Fedora"
fi

# Download the genome yum configuration
wget "http://ftp.redhat.com/pub/redhat/genome/yum/$RELEASE-genome.repo" --output-document=/etc/yum.repos.d/$RELEASE-genome.repo

%end