Skip to content

Commit

Permalink
install-deps: Use dnf config-manager
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
badone committed Apr 3, 2021
1 parent af167c0 commit 2e1ee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e1ee01

Please sign in to comment.