libvirtd service: Move mutable configs to /var

Modifies libvirt package to search for configs in /var/lib and changes
libvirtd service to copy the default configs to the new location.

This enables the user to change e.g. the networking configuration with
virsh or virt-manager and keep those settings.
This commit is contained in:
Tristan Helmich
2015-12-18 14:07:53 +01:00
parent c29df5f8a7
commit bce59a1a8b
2 changed files with 7 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
"--sysconfdir=/var/lib"
"--with-libpcap"
"--with-vmware"
"--with-vbox"
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
installFlags = [
"localstatedir=$(TMPDIR)/var"
"sysconfdir=$(out)/etc"
"sysconfdir=$(out)/var/lib"
];
postInstall = ''