From 8c220d00d4b72aa6a98852db2453532ec524f179 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 5 Feb 2022 17:48:01 +0900 Subject: [PATCH] CentOS: Capture yum repository files When some of the repositories are not accessible, repository list is not properly captured and that makes it difficult to find out which repository is wrong or has an issue. This change ensures the repository configuration files are captured as part of logs, for easy reference. Change-Id: I9eae6425761b9a93ab0f44d4cb42d93a1add6b40 --- copy_logs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copy_logs.sh b/copy_logs.sh index bfcec573d..79aed003d 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -233,6 +233,10 @@ if [ `command -v gem` ]; then gem list |sort > $LOG_DIR/gem-list.txt fi +if is_fedora; then + sudo cp -r /etc/yum.repos.d $LOG_DIR/etc/yum.repos.d +fi + # system status & informations sudo cp /root/openrc $LOG_DIR/openrc.txt sudo chmod 777 $LOG_DIR/openrc.txt