]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: enable testing repo on centos on aarch64
authorKefu Chai <kchai@redhat.com>
Fri, 8 Dec 2017 10:07:37 +0000 (18:07 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Dec 2017 11:11:51 +0000 (19:11 +0800)
the DTS-6 is only available in the testing repo

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4cedada14e12e677a180cfa1fce6442ecc763204)

install-deps.sh

index 873323808e74298a721f2db9ee2858cb7ccb2fbc..dcc95fba541f169c31149cbf1d8302a574f8e361 100755 (executable)
@@ -180,6 +180,12 @@ else
             builddepcmd="dnf -y builddep --allowerasing"
         fi
         echo "Using $yumdnf to install dependencies"
+       if [ $(lsb_release -si) = CentOS -a $(uname -m) = aarch64 ]; then
+           $SUDO yum-config-manager --disable centos-sclo-sclo || true
+           $SUDO yum-config-manager --disable centos-sclo-rh || true
+           $SUDO yum remove centos-release-scl || true
+       fi
+
         $SUDO $yumdnf install -y redhat-lsb-core
         case $(lsb_release -si) in
             Fedora)
@@ -201,11 +207,13 @@ else
                     $SUDO yum-config-manager --enable cr
                    case $(uname -m) in
                        x86_64)
-                           $SUDO yum install centos-release-scl
+                           $SUDO yum -y install centos-release-scl
                            dts_ver=7
                            ;;
                        aarch64)
-                           $SUDO yum install centos-release-scl-rh
+                           $SUDO yum -y install centos-release-scl-rh
+                           $SUDO yum-config-manager --disable centos-sclo-rh
+                           $SUDO yum-config-manager --enable centos-sclo-rh-testing
                            dts_ver=6
                            ;;
                    esac