The following is a sample RedHat Enterprise Linux 5 (RHEL5) Kickstart configuration file.
# The RPMs below are required and will be installed from OS installation media # automatically during the automated installation of products in the DVD, if they have not # been installed yet. %packages libattr.i386 libacl.i386 %post --nochroot # Add necessary scripts or commands here to your need # This generated kickstart file is only for the automated installation of products in the # DVD PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin export PATH # # Notice: # * Modify the BUILDSRC below according to your real environment # * The location specified with BUILDSRC should be NFS accessible # to the Kickstart Server # * Copy the whole directories of rpms from installation media # to the BUILDSRC # BUILDSRC="<hostname_or_ip>:/path/to/rpms" # # Notice: # * You do not have to change the following scripts. # # Define path variables. ROOT=/mnt/sysimage BUILDDIR="${ROOT}/build" RPMDIR="${BUILDDIR}/rpms" # define log path KSLOG="${ROOT}/var/tmp/kickstart.log" echo "==== Executing kickstart post section: ====" >> ${KSLOG} mkdir -p ${BUILDDIR} mount -t nfs -o nolock,vers=3 ${BUILDSRC} ${BUILDDIR} >> ${KSLOG} 2>&1
# Install the RPMs in the following order. for RPM in VRTSperl VRTSvlic VRTSsfcpi61 VRTSspt VRTSvxvm VRTSaslapm VRTSob VRTSlvmconv VRTSsfmh VRTSvxfs VRTSfsadv VRTSfssdk VRTSllt VRTSgab VRTSvxfen VRTSamf VRTSvcs VRTScps VRTSvcsag VRTSvcsdr VRTSvcsea VRTSvbs VRTSdbed VRTSglm VRTScavf VRTSgms VRTSodm
do echo "Installing package -- $RPM" >> ${KSLOG} rpm -U -v --root ${ROOT} ${RPMDIR}/${RPM}-* >> ${KSLOG} 2>&1 done umount ${BUILDDIR} CALLED_BY=KICKSTART ${ROOT}/opt/VRTS/install/bin/UXRT61/add_install_scripts >> ${KSLOG} 2>&1 exit 0