From efbfd678a2d31b9d957a30c9cdf407daa5f1fcc2 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 4 Jun 2021 09:32:52 -0700 Subject: [PATCH] script: enable centos debuginfo repo for debugging So we can fetch e.g. the sqlite debuginfo packages. Signed-off-by: Patrick Donnelly --- src/script/ceph-debug-docker.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/script/ceph-debug-docker.sh b/src/script/ceph-debug-docker.sh index 7941cd46844..9bdf0df611a 100755 --- a/src/script/ceph-debug-docker.sh +++ b/src/script/ceph-debug-docker.sh @@ -110,10 +110,12 @@ EOF centos:7) python_bindings="python36-rados python36-cephfs" ceph_debuginfo="ceph-debuginfo" + debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo ;; centos:8) python_bindings="python3-rados python3-cephfs" ceph_debuginfo="ceph-base-debuginfo" + debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo ;; esac if [ "${FLAVOR}" = "crimson" ]; then @@ -123,7 +125,8 @@ EOF FROM ${env} WORKDIR /root -RUN yum update -y && \ +RUN sed -i 's/enabled=0/enabled=1/' ${debuginfo} && \ + yum update -y && \ yum install -y tmux epel-release wget psmisc ca-certificates gdb RUN wget -O /etc/yum.repos.d/ceph-dev.repo $repo_url && \ yum clean all && \ -- 2.39.5