]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: install rhel-7-server-optional-rpms on el7 only
authorKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2020 05:59:01 +0000 (13:59 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2020 06:36:01 +0000 (14:36 +0800)
RHEL8 uses appstream and supplementary repos for those optional-rpms.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index ec955c019aa399ca31cf24068eebcb6c4423ac94..c725b6ee3863af0174b0e4f5bf2798db4fdd7e0a 100755 (executable)
@@ -341,9 +341,6 @@ else
             centos|rhel|ol|virtuozzo)
                 MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)"
                 $SUDO $yumdnf install -y $yumdnf-utils
-                if test $ID = rhel ; then
-                    $SUDO yum-config-manager --enable rhel-$MAJOR_VERSION-server-optional-rpms
-                fi
                 rpm --quiet --query epel-release || \
                    $SUDO $yumdnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm
                 $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
@@ -364,6 +361,7 @@ else
                 elif test $ID = rhel -a $MAJOR_VERSION = 7 ; then
                     $SUDO yum-config-manager \
                          --enable rhel-server-rhscl-7-rpms \
+                         --enable rhel-7-server-optional-rpms \
                          --enable rhel-7-server-devtools-rpms
                     dts_ver=8
                 elif test $ID = centos -a $MAJOR_VERSION = 8 ; then