Under standard operating conditions, use of this script is done without arguments. However, if creating AMIs on a private network (that does not have access to the default, public, Internet-hosted mirrors), this script has been enhanced to allow this operation. To reference private mirrors/repos, invoke the script as follows:
${BINPATH}/ChrootBuild.sh -r ${CUSTOM_REPO_RPM} -b ${CUSTOM_REPO_NAME}
CUSTOM_REPO_RPM
: This script only accepts private repos that have been provided in the form of an RPM. Use the -r
flag and either a file-path or URI specification from which to install this custom repo into the chroot() environment.
CUSTOM_REPO_NAME
: If any of the RPMs to be installed by this script reside in a repository that is defined in the RPM as inactive, use the -b
flag to activate this bonus repository (currently, only one bonus repository may be activated)