mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
ch: Load ch.conf from SYSCONFDIR
Config files for system instances of our drivers (e.g. "ch:///system", "qemu:///system", etc.) live under /etc/libvirt. But for some reason, the CH driver was trying to load the config file from /var/lib/libvirt/ch/ even though the file is installed under /etc/libvirt per the following line from src/meson.build: install_data(virt_conf_files, install_dir: confdir) Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
+1
-2
@@ -178,8 +178,7 @@ virCHDriverConfigNew(bool privileged)
|
||||
cfg->logDir = g_strdup_printf("%s/log/libvirt/ch", LOCALSTATEDIR);
|
||||
cfg->stateDir = g_strdup_printf("%s/libvirt/ch", RUNSTATEDIR);
|
||||
cfg->saveDir = g_strdup_printf("%s/lib/libvirt/ch/save", LOCALSTATEDIR);
|
||||
cfg->configDir = g_strdup_printf("%s/lib/libvirt/ch", LOCALSTATEDIR);
|
||||
|
||||
cfg->configDir = g_strdup(SYSCONFDIR "/libvirt");
|
||||
} else {
|
||||
g_autofree char *rundir = NULL;
|
||||
g_autofree char *cachedir = NULL;
|
||||
|
||||
Reference in New Issue
Block a user