]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps: Use dnf config-manager 40574/head
authorBrad Hubbard <bhubbard@redhat.com>
Sat, 3 Apr 2021 06:56:42 +0000 (16:56 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Sat, 3 Apr 2021 06:57:50 +0000 (16:57 +1000)
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 <bhubbard@redhat.com>
install-deps.sh

index a5e19998f17b107d9961c1a3b14c35a389726cd0..368fea017d593946c25ba63e57d5097ac037e923 100755 (executable)
@@ -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