* 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
This commit is contained in:
Eelco Dolstra 2011-03-31 22:09:07 +00:00
parent 50ae7ab689
commit 8844b1545a

View File

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