# Merged kickstart. Minor bugfixes come for free bug features should # be configured for the correct version. install cdrom #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] lang @@KS_LANGUAGE@@ keyboard @@KS_KEYBOARD@@ skipx text network --device eth0 --bootproto dhcp rootpw @@ROOTPASSWORD@@ firewall --disabled selinux --disabled authconfig --enableshadow --enablemd5 timezone --utc @@TIMEZONE@@ poweroff # if you want to have quiet boots add option 'quiet' to the next line # For debugging purposes or in case of trouble boot messages are very helpful bootloader --location=mbr --driveorder=@@SYSTEM_DISK_PREFIX@@a --append="@@KS_KERNEL_OPTS@@" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work zerombr clearpart --linux --initlabel part / --ondisk=@@SYSTEM_DISK_PREFIX@@a --fstype="ext4" --size=@@ROOTSIZE@@ part swap --ondisk=@@SYSTEM_DISK_PREFIX@@a --size=@@SWAPSIZE@@ #The following Part lists all the packages that are needed for the Installation %packages @@@KS_RHEL_PACKAGES@@@ @@KS_EXTRA_PACKAGES@@ %end %post ( set -x @@@KS_RHEL_SERVICES@@@ for i in @@KS_EXTRA_CHKCONFIGS@@ ; do chkconfig ${i%:*} ${i#*:} done ### f="/etc/sysconfig/network" echo "Switching off IPv6 in ${f}..." sed -i.orig -e 's/NETWORKING_IPV6=yes/NETWORKING_IPV6=no/g' "$f" ### echo "Changing device scanning filter settings in lvm.conf to reduce boot time..." x1='filter = \[ "a/\.\*/" \]' y1='filter = \[ "a|\^/dev/mapper/\.\*|", "a|\^/dev/sda\.\*|", "r|\.\*|" ]' x2='# By default we accept every block device:' y2='# Exclude some block devices:' sed -i.orig -e "s@${x1}@${y1}@" -e "s@${x2}@${y2}@" /etc/lvm/lvm.conf ### echo "Setting the value of max opened files..." cat >/etc/security/limits.d/autocluster.cfg <>/etc/ssh/sshd_config <>/etc/modprobe.d/z-autocluster.conf <>/etc/sysconfig/multipathd <&1 | tee /var/log/ks-postinstall.log > /dev/console %end