From 2e1ee019d2180e06a5e7f5d1365cdd2e668dd962 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Sat, 3 Apr 2021 16:56:42 +1000 Subject: [PATCH] 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 --- install-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5