From: Brad Hubbard Date: Sat, 3 Apr 2021 06:56:42 +0000 (+1000) Subject: install-deps: Use dnf config-manager X-Git-Tag: v17.1.0~2390^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40574%2Fhead;p=ceph.git install-deps: Use dnf config-manager Using subscription-manager will fail in a container so use dnf config-manager which should work on bare metal as well as in a container. Fixes: https://tracker.ceph.com/issues/50118 Signed-off-by: Brad Hubbard --- diff --git a/install-deps.sh b/install-deps.sh index a5e19998f17b1..368fea017d593 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -363,7 +363,7 @@ else $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then - $SUDO subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms" + $SUDO dnf config-manager --set-enabled "codeready-builder-for-rhel-8-${ARCH}-rpms" $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save fi