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]
7 keyboard @@KS_KEYBOARD@@
10 network --device eth0 --bootproto dhcp
11 rootpw @@ROOTPASSWORD@@
14 authconfig --enableshadow --enablemd5
15 timezone --utc @@TIMEZONE@@
17 # if you want to have quiet boots add option 'quiet' to the next line
18 # For debugging purposes or in case of trouble boot messages are very helpful
19 bootloader --location=mbr --driveorder=@@SYSTEM_DISK_PREFIX@@a --append="@@KS_KERNEL_OPTS@@"
21 # The following is the partition information you requested
22 # Note that any partitions you deleted are not expressed
23 # here so unless you clear all partitions first, this is
24 # not guaranteed to work
26 clearpart --linux --initlabel
27 part / --ondisk=@@SYSTEM_DISK_PREFIX@@a --fstype="ext4" --size=@@ROOTSIZE@@
28 part swap --ondisk=@@SYSTEM_DISK_PREFIX@@a --size=@@SWAPSIZE@@
32 #The following Part lists all the packages that are needed for the Installation
35 @@@KS_RHEL_PACKAGES@@@
46 @@@KS_RHEL_SERVICES@@@
48 for i in @@KS_EXTRA_CHKCONFIGS@@ ; do
49 chkconfig ${i%:*} ${i#*:}
53 f="/etc/sysconfig/network"
54 echo "Switching off IPv6 in ${f}..."
55 sed -i.orig -e 's/NETWORKING_IPV6=yes/NETWORKING_IPV6=no/g' "$f"
58 echo "Changing device scanning filter settings in lvm.conf to reduce boot time..."
59 x1='filter = \[ "a/\.\*/" \]'
60 y1='filter = \[ "a|\^/dev/mapper/\.\*|", "a|\^/dev/sda\.\*|", "r|\.\*|" ]'
61 x2='# By default we accept every block device:'
62 y2='# Exclude some block devices:'
63 sed -i.orig -e "s@${x1}@${y1}@" -e "s@${x2}@${y2}@" /etc/lvm/lvm.conf
66 echo "Setting the value of max opened files..."
67 cat >/etc/security/limits.d/autocluster.cfg <<EOF
68 # Added by autocluster
75 echo "Set sshd_config to allow more connections..."
76 cat >>/etc/ssh/sshd_config <<EOF
77 # Added by autocluster
82 echo "Disabling prelinking in /etc/sysconfig/prelink ..."
83 sed -i.orig -e 's/PRELINKING=yes/# Modified by autocluster\n#&\nPRELINKING=no/' /etc/sysconfig/prelink
86 echo "Disabling some modules..."
87 mkdir -p /etc/modprobe.d
88 cat >>/etc/modprobe.d/z-autocluster.conf <<EOF
90 # Added by autocluster
107 echo "Enabling core dumps logging for multipathd..."
108 cat >>/etc/sysconfig/multipathd <<EOF
109 # Added by autocluster
110 DAEMON_COREFILE_LIMIT="unlimited"
113 @@@KS_STANDARD_POSTINSTALL@@@
115 @@@KS_POSTINSTALL_TEMPLATE@@@
119 ) 2>&1 | tee /var/log/ks-postinstall.log > /dev/console