1 # Merged kickstart. Minor bugfixes come for free bug features should
2 # be configured for the correct version.
5 #ignoredisk --drives=[sdb,sdc,sdd,sde,sdf,sdg,sdh,sdi,sdj,sdk,sdl,sdm,sdn,sdo,sdp,sdq,sdr,sds,sdt,sdu,sdv,sdw,sdx,sdy,sdz,sdaa]
10 network --device eth0 --bootproto dhcp
11 network --device eth1 --onboot no --bootproto static
12 rootpw @@ROOTPASSWORD@@
15 authconfig --enableshadow --enablemd5
16 timezone --utc @@TIMEZONE@@
18 # if you want to have quiet boots add option 'quiet' to the next line
19 # For debugging purposes or in case of trouble boot messages are very helpful
20 bootloader --location=mbr --driveorder=@@SYSTEM_DISK_PREFIX@@a --append="@@KS_KERNEL_OPTS@@"
22 # The following is the partition information you requested
23 # Note that any partitions you deleted are not expressed
24 # here so unless you clear all partitions first, this is
25 # not guaranteed to work
27 clearpart --linux --initlabel
28 part / --ondisk=@@SYSTEM_DISK_PREFIX@@a --fstype="ext4" --size=@@ROOTSIZE@@
29 part swap --ondisk=@@SYSTEM_DISK_PREFIX@@a --size=@@SWAPSIZE@@
33 #The following Part lists all the packages that are needed for the Installation
38 @@_EXTRA_RHEL_PACKAGES@@
51 for i in @@EXTRA_CHKCONFIGS@@ ; do
52 chkconfig ${i%:*} ${i#*:}
56 f="/etc/sysconfig/network"
57 echo "Switching off IPv6 in ${f}..."
58 sed -i.orig -e 's/NETWORKING_IPV6=yes/NETWORKING_IPV6=no/g' "$f"
61 echo "Changing device scanning filter settings in lvm.conf to reduce boot time..."
62 x1='filter = \[ "a/\.\*/" \]'
63 y1='filter = \[ "a|\^/dev/mapper/\.\*|", "a|\^/dev/sda\.\*|", "r|\.\*|" ]'
64 x2='# By default we accept every block device:'
65 y2='# Exclude some block devices:'
66 sed -i.orig -e "s@${x1}@${y1}@" -e "s@${x2}@${y2}@" /etc/lvm/lvm.conf
69 echo "Changing settings so sysstat also reports disk I/O..."
70 /etc/init.d/sysstat stop
72 for i in "/etc/init.d/sysstat" "/usr/lib64/sa/sa1" ; do
73 sed -i.orig -e 's/sadc -F -L/sadc -d -F -L/g' "$i"
77 echo "Setting the value of max opened files..."
78 cat >/etc/security/limits.d/autocluster.cfg <<EOF
79 # Added by autocluster
86 echo "Set sshd_config to allow more connections..."
87 cat >>/etc/ssh/sshd_config <<EOF
88 # Added by autocluster
93 echo "Disabling prelinking in /etc/sysconfig/prelink ..."
94 sed -i.orig -e 's/PRELINKING=yes/# Modified by autocluster\n#&\nPRELINKING=no/' /etc/sysconfig/prelink
97 echo "Disabling some modules..."
98 mkdir -p /etc/modprobe.d
99 cat >>/etc/modprobe.d/z-autocluster.conf <<EOF
101 # Added by autocluster
119 echo "Creating new multipath.conf..."
120 f="/etc/multipath.conf"
121 mv -f "$f" "${f}.orig"
124 # Added by autocluster
127 getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
128 user_friendly_names yes
132 devnode "^@@SYSTEM_DISK_PREFIX@@a[0-9]*$"
137 echo "Enabling core dumps logging for multipathd..."
138 cat >>/etc/sysconfig/multipathd <<EOF
139 # Added by autocluster
140 DAEMON_COREFILE_LIMIT="unlimited"
143 @@@STANDARD_POSTINSTALL@@@
145 @@@POSTINSTALL_TEMPLATE@@@
149 ) 2>&1 | tee /var/log/ks-postinstall.log > /dev/console