17.4. Method: addScript
Add a pre or post script to a kickstart profile.
The following parameters are available for this method:
- string
sessionKey - string
ksLabel- The kickstart label to add the script - string
name- The kickstart script name - string
contents- The full script to add - string
interpreter- The path to the interpreter to use e.g./bin/bash; an empty string enables the kickstart default interpreter - string
type- The type of script; eitherpreorpost - boolean
chroot- Whether to run the script in the chrooted install location (recommended) or not. - boolean
template- Enable templating using cobbler - boolean
erroronfail- Whether to throw an error if the script fails or not
The following return values are available for this method:
- int
id- The ID of the added script

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.