4.3. Standard Kickstart Scripts

After setting the standard parameters, you add a number of scripts that will do the following:

  • install the minimal mandatory package group;
  • add the public keys to the RPM database and reinstall the VZLinux release;
  • enable kernel crash dumping.

To perform the above steps, add the following scripts to the kickstart file: %packages, %post, %addon. These scripts start with their respective names along with a % prefix and end with the %end command.

4.3.1. Packages Script

In the body of the %packages script, specify the minimal mandatory package group to install on the server:

%packages
@^minimal
%end

4.3.2. Post-Installation Script

In the post-installation script, you add the public keys to the RPM database and reinstall the VZLinux release:

%post
# Add public keys to rpm database
rpmkeys --import /etc/pki/rpm-gpg/*
# Reinstall vzlinux release
yum reinstall vzlinux-release -y
%end

4.3.3. Add-on Script

To enable kernel crash dumping during the installation, add the following lines to the end of the kickstart file:

%addon com_redhat_kdump --enable --reserve-mb='auto'
%end