lxc: set rootfs path somewhere outside /nix/store

This commit fixes lxc to eventually work
This commit is contained in:
Jaka Hudoklin 2014-04-10 02:27:43 +02:00
parent d54a805281
commit c7e94de91f

View File

@ -14,10 +14,14 @@ stdenv.mkDerivation rec {
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ]; 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 = [ configureFlags = [
"--localstatedir=/var" "--localstatedir=/var"
"--with-rootfs-path=/var/lib/lxc/rootfs"
"--enable-doc" "--enable-doc"
"--enable-tests" "--enable-tests"
"--enable-apparmor" "--enable-apparmor"