]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: install centos-release-scl-rh on aarch64
authorKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 15:22:17 +0000 (23:22 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:09:20 +0000 (17:09 +0200)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 84660c977cc7511290a3c5497468052b3eaccf43)

install-deps.sh

index 49638b8e72cd3cf581a1a62d87bdc499391a0d1d..016abf5b7ad24c797e82a4b484a069eb5bbaae48 100755 (executable)
@@ -177,7 +177,12 @@ else
                 $SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
                 if test $(lsb_release -si) = CentOS -a $MAJOR_VERSION = 7 ; then
                     $SUDO yum-config-manager --enable cr
-                    $SUDO yum install centos-release-scl
+                   case $(uname -m) in
+                       x86_64)
+                           $SUDO yum install centos-release-scl;;
+                       aarch64)
+                           $SUDO yum install centos-release-scl-rh;;
+                   esac
                 elif test $(lsb_release -si) = RedHatEnterpriseServer -a $MAJOR_VERSION = 7 ; then
                     $SUDO yum-config-manager --enable rhel-server-rhscl-7-rpms
                 elif test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then