Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
32.6. Pre-installation Script
You can add commands to run on the system immediately after the
ks.cfghas been parsed. This section must be placed towards the end of the kickstart file, after the kickstart commands described in Section 32.4, “Kickstart Options”, and must start with the
%precommand and end with the
%endcommand. If your kickstart file also includes a
%postsection, the order of the
%postsections does not matter. See Section 32.8, “Kickstart Examples” for example configuration files.
The pre-installation script section of kickstart cannot manage multiple install trees or source media. This information must be included for each created ks.cfg file, as the pre-installation script occurs during the second stage of the installation process.
You can access the network in the
%presection; however, name service has not been configured at this point, so only IP addresses work.
Only the most commonly used commands are available in the pre-installation environment:
The pre-install script is not run in the change root environment.
- Allows you to specify a different scripting language, such as Python. Replace /usr/bin/python with the scripting language of your choice.