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
This commit is contained in:
Takashi Kajinami 2021-05-23 16:47:09 +09:00
parent 69ae5c28ef
commit d1e9389e3f

View File

@ -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