3.2.1.3 Pre-installation Configuration Section

The %pre section defines any actions that kickstart must perform before installation. This section is optional.

For example, the following %pre section runs the script config-partitions that is stored on an HTTP server and downloads a list of packages for use with a %include /tmp/package-list statement in the %packages section.

%pre
%include http://192.168.1.100/scripts/config-partitions
wget -q -O- http://192.168.1.100/scripts/package-list > /tmp/package-list
%end

In this example, the wget command saves the package list in kickstart's file system, which exists as a ramdisk in memory.

An included script or file must be accessible at the specified path or URL.

As the name service is not available before installation, you must use IP addresses instead of domain names in the %pre section or in any script that it includes.