Understanding xCAT kickstart file

Technote (FAQ)


What does "%include /tmp/provisioning" in xCAT kickstart template mean?


In xCAT diskful kickstart template, e.g. /opt/xcat/share/xcat/install/rh/PMTools.rhels6.3.tmpl, the %include /path/to/file or %include <url> command is used to include the contents of another file in the kickstart file as though the contents were at the location of the %include command in the kickstart file. So "%include /tmp/provisioning" will include the content of /tmp/provisioning in kickstart file.
The content of "%include /tmp/provisioning" is generated by the script /opt/xcat/share/xcat/install/scripts/pre.<os_type>, e.g. pre.rh for Rhel OS. The file /tmp/provisioning will be removed after provisioning.

In PCMAE context, if you want to customize the diskfull osimage kickstart file, modify the script /opt/xcat/share/xcat/install/scripts/pre.<os_type>. Below is an example:

Customization to Rhel kickstart file to increase swap from 1GB to 2GB

The changes to /opt/xcat/share/xcat/install/scripts/pre.rh:

#echo "part swap --size 1024" >> /tmp/partitioning
echo "part swap --size 2048" >> /tmp/partitioning

Below is the swap on host abc001 after provisioning.

# free|grep Swap
Swap: 2097144 0 2097144

Document information

More support for:

Platform Cluster Manager

Software version:


Operating system(s):


Software edition:


Reference #:


Modified date:


Translate my page

Content navigation