Merge pull request #2197 from offlinehacker/pkgs/lxc/rootfs_fix

lxc: set rootfs path somewhere outside /nix/store
This commit is contained in:
Peter Simons 2014-04-10 12:34:08 +02:00
commit 3c7f5870e3

View File

@ -14,10 +14,14 @@ stdenv.mkDerivation rec {
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
preConfigure = ''
export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml
substituteInPlace doc/rootfs/Makefile.am --replace '@LXCROOTFSMOUNT@' '$out/lib/lxc/rootfs'
'';
configureFlags = [
"--localstatedir=/var"
"--with-rootfs-path=/var/lib/lxc/rootfs"
"--enable-doc"
"--enable-tests"
"--enable-apparmor"