]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build: enable PowerTools repo for EL8
authorKefu Chai <kchai@redhat.com>
Fri, 4 Oct 2019 18:18:05 +0000 (02:18 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 Oct 2019 18:18:05 +0000 (02:18 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-dev-new-build/build/setup_rpm

index be9bbab0fc71d56091d69318f343cb0cd571b1fe..789dbea3d4665b1e3c7743683df47b71e39eb235 100644 (file)
@@ -79,12 +79,16 @@ get_rpm_dist() {
 
 get_rpm_dist
 
-if [ "$ARCH" = x86_64 ]; then
-    $SUDO yum install -y centos-release-scl
-elif [ "$ARCH" = arm64 ]; then
-    $SUDO yum install -y centos-release-scl-rh
-    $SUDO yum-config-manager --disable centos-sclo-rh
-    $SUDO yum-config-manager --enable centos-sclo-rh-testing
+if [ "$RELEASE" = 7 ]; then
+   if [ "$ARCH" = x86_64 ]; then
+       $SUDO yum install -y centos-release-scl
+   elif [ "$ARCH" = arm64 ]; then
+       $SUDO yum install -y centos-release-scl-rh
+       $SUDO yum-config-manager --disable centos-sclo-rh
+       $SUDO yum-config-manager --enable centos-sclo-rh-testing
+   fi
+elif [ "$RELEASE" = 8 ]; then
+    $SUDO dnf config-manager --set-enabled PowerTools
 fi
 
 sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec