2020-08-24 13:51:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# When building RHEL overcloud images, certain modules may be preferred
|
|
|
|
# or even required.
|
|
|
|
#
|
|
|
|
# For example, container-tools:2.0 is notably a requirement when running
|
|
|
|
# the Train releases on RHEL 8.2.
|
|
|
|
#
|
|
|
|
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2020-10-07 11:23:14 +00:00
|
|
|
export DIB_DNF_MODULE_STREAMS=${DIB_DNF_MODULE_STREAMS:-}
|
|
|
|
|
2020-08-24 13:51:58 +00:00
|
|
|
if [ "${YUM}" == "dnf" ]; then
|
|
|
|
for m in ${DIB_DNF_MODULE_STREAMS}; do
|
|
|
|
${YUM} -y module disable ${m/:*/}
|
|
|
|
${YUM} -y module enable ${m}
|
|
|
|
done
|
|
|
|
fi
|