preupg-content-creator(1)

NAME
preupg-content-creator - The Preupgrade Assistant provides this script for a faster creation of modules

AVAILABLE FUNCTIONS
API provides a set of functions which can be used for better handling of your data. check_applies_to - The function can be used to detect a specific RPM package. If the RPM package does not exist, check the script exit with the exit_not_applicable return code. check_root - The function checks whether the user is root. solution_file - The function adds a message to the solution file defined in the INI file. backup_config_file - The function backs up a config file to the /root/preupgrade directory. service_is_enabled - The function checks if the service provided by the chkconfig command is enabled.

HOW TO TEST A MODULE
Follow these steps to test your module on the system: 1. Execute the preupg-create-group-xml command which checks whether your module is properly created and nothing is missing: preupg-create-group-xml contents/[Migration_path]/[content_dir]/ 2. The preupg-create-group-xml command creates an XML file in contents/[Migration_path]-results/[content_dir]/all_xccdf.xml 3. Execute the preupg binary as root: preupg -c contents/[Migration_path]/[content_dir]/

AUTHORS
Petr Hracek, <phracek@redhat.com> (man page)