From d1e9389e3fdd5b5fcee94901ae34c3533571266e Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 23 May 2021 16:47:09 +0900 Subject: [PATCH] Gather config files for libvirt This change ensures that config files for the libvirt service is gathered when copying log files so that we can debug any issue with the libvirt service in detail. Change-Id: I05bda8921a97e2c3dad2ffcb3784cd43b7f6654b --- copy_logs.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/copy_logs.sh b/copy_logs.sh index 165f26666..0a638eb8d 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -135,6 +135,20 @@ fi if [ -d /var/log/libvirt ] ; then sudo cp -r /var/log/libvirt $LOG_DIR/ fi +if [ -d /etc/libvirt ]; then + sudo cp -r /etc/libvirt $LOG_DIR/etc/ +fi +if use_debs; then + if [ -f /etc/default/libvirtd ]; then + mkdir $LOG_DIR/etc/default + sudo cp /etc/default/libvirtd $LOG_DIR/etc/default/ + fi +elif is_fedora; then + if [ -f /etc/sysconfig/libvirtd ]; then + mkdir $LOG_DIR/etc/sysconfig + sudo cp /etc/sysconfig/libvirtd $LOG_DIR/etc/sysconfig/ + fi +fi # openvswitch if [ -d /var/log/openvswitch ] ; then