From 247ee6084b58861da601d349bdba739b252d96de Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 8 Dec 2015 08:02:56 +0100 Subject: [PATCH] build/ops: enable CR in CentOS 7 To get libunwind from the CR repositories until CentOS 7.2.1511 is released. http://tracker.ceph.com/issues/13997 Fixes: #13997 Signed-off-by: Loic Dachary --- install-deps.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-deps.sh b/install-deps.sh index 1bebf09b08bda..8249ea3459729 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -62,7 +62,7 @@ CentOS|Fedora|RedHatEnterpriseServer) CentOS|RedHatEnterpriseServer) $SUDO yum install -y yum-utils MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.) - if test $(lsb_release -si) == RedHatEnterpriseServer ; then + if test $(lsb_release -si) = RedHatEnterpriseServer ; then $SUDO yum install subscription-manager $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms fi @@ -70,6 +70,9 @@ CentOS|Fedora|RedHatEnterpriseServer) $SUDO yum install --nogpgcheck -y epel-release $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION $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 + fi ;; esac sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec -- 2.39.5