pkgdep/rhel: Install yum-utils regardless of the $VERSION_ID
Also, put it on yum's cmdline separately since it doesn't really belong to repos[] - it provides proper tooling not the actual repos. Change-Id: I26c0c90b52f5b4fa914c116477092df525b4448f Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4359 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
0f06b929c9
commit
0cd90081c0
@ -44,10 +44,10 @@ if [[ $ID == centos || $ID == rhel ]]; then
|
|||||||
repos+=("https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm")
|
repos+=("https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm")
|
||||||
[[ $ID == centos ]] && repos+=("centos-release-ceph-nautilus.noarch")
|
[[ $ID == centos ]] && repos+=("centos-release-ceph-nautilus.noarch")
|
||||||
# Add PowerTools needed for install CUnit-devel in Centos8
|
# Add PowerTools needed for install CUnit-devel in Centos8
|
||||||
[[ $ID == centos ]] && repos+=("yum-utils") && enable+=("PowerTools")
|
[[ $ID == centos ]] && enable+=("PowerTools")
|
||||||
fi
|
fi
|
||||||
if ((${#repos[@]} > 0)); then
|
if ((${#repos[@]} > 0)); then
|
||||||
yum install -y "${repos[@]}"
|
yum install -y "${repos[@]}" yum-utils
|
||||||
yum-config-manager --enable "${enable[@]}"
|
yum-config-manager --enable "${enable[@]}"
|
||||||
fi
|
fi
|
||||||
# Potential dependencies can be needed from other RHEL repos, enable them
|
# Potential dependencies can be needed from other RHEL repos, enable them
|
||||||
|
Loading…
Reference in New Issue
Block a user