Tools/provision.sh: adjust conditional EPEL installation for el10
EPEL-10 can't be installed on any of c10s and el10. Previously, the script would try to install EPEL repositories package on el10 and fail. In addition, use our "workaround" repository with c10s builds of some packages (such as koji) also on el10. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
ba60b22104
commit
f3e83a3838
1 changed files with 2 additions and 2 deletions
|
|
@ -31,14 +31,14 @@ fi
|
|||
# and install koji and ansible here.
|
||||
#
|
||||
# TODO: Adjust the c10s condition, once EPEL-10 is available.
|
||||
if [[ $ID == rhel || ($ID == centos && ${VERSION_ID%.*} -lt 10) ]] && ! rpm -q epel-release; then
|
||||
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} -lt 10 ]] && ! rpm -q epel-release; then
|
||||
curl -Ls --retry 5 --output /tmp/epel.rpm \
|
||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-"${VERSION_ID%.*}".noarch.rpm
|
||||
sudo rpm -Uvh /tmp/epel.rpm
|
||||
fi
|
||||
|
||||
# TODO: Remove this workaround, once koji is in EPEL-10
|
||||
if [[ $ID == centos && ${VERSION_ID%.*} == 10 ]]; then
|
||||
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} == 10 ]]; then
|
||||
sudo dnf copr enable -y @osbuild/centpkg "centos-stream-10-$(uname -m)"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue