From 8844b1545a01652c6bf69ea60f30db7dfc5eb15f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 31 Mar 2011 22:09:07 +0000 Subject: * Libvirt keeps state (such as information about running VMs) in $(sysconfdir). So this needs to be /etc rather than $out/etc. No wonder libvirt forgot about my VMs every time it got upgraded... (I guess it should really be /var, but that's upstream's decision.) svn path=/nixpkgs/branches/modular-python/; revision=26643 --- pkgs/development/libraries/libvirt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index 2a9661b19c8b..c891b7e4bb50 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -23,9 +23,9 @@ stdenv.mkDerivation { PATH=${iproute}/sbin:${iptables}/sbin:${ebtables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH ''; - configureFlags = "--localstatedir=/var --with-init-script=redhat"; + configureFlags = "--localstatedir=/var --sysconfdir=/etc --with-init-script=redhat"; - installFlags = "localstatedir=$(TMPDIR)/var"; + installFlags = "localstatedir=$(TMPDIR)/var sysconfdir=$(out)/etc"; postInstall = '' -- cgit 1.4.1