296c81b9ca
A custom yum repository can now be configured by defining `DIB_YUM_REPO_PACKAGE` as a yum available package or a URL to an rpm file. This package can install repo files with any associated keys and certificates. A good example of such a package upstream is rdo-release[1] which includes multiple repo files, the repo keys, and a root certificate. This makes these repos impractical to install via DIB_YUM_REPO_CONF. Downstream, repo packages like this a frequently used to bootstrap development builds of RHEL with development repos. [1] https://www.rdoproject.org/repos/rdo-release.rpm Change-Id: I2832e723998c9bd7635cdf7541a4c20eff6294d2
11 lines
178 B
Bash
Executable file
11 lines
178 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ -n "${DIB_YUM_REPO_PACKAGE:-}" ] ; then
|
|
rpm -ivh ${DIB_YUM_REPO_PACKAGE}
|
|
fi
|