]> 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)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:12:08 +0000 (17:12 +0200)
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 645d3f2c40d12a808bbc23b8539f79c23fcbba75..35144d4c2581efde27f9d9a3fcf47a315285ddc5 100755 (executable)
@@ -190,6 +190,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)
@@ -211,11 +217,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