From 9ff982e4abe6a2d01d30bb7d7d53fa53664436d9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 15 Sep 2009 08:55:41 +0000 Subject: [PATCH] Require AUFS2 support in kernel svn path=/nixpkgs/trunk/; revision=17150 --- pkgs/os-specific/linux/aufs2-utils/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/aufs2-utils/default.nix b/pkgs/os-specific/linux/aufs2-utils/default.nix index ce2f2c1515a4..052654752bf2 100644 --- a/pkgs/os-specific/linux/aufs2-utils/default.nix +++ b/pkgs/os-specific/linux/aufs2-utils/default.nix @@ -1,4 +1,6 @@ a : +if (a.lib.attrByPath ["features" "zen"] false a.kernel) || + (a.lib.attrByPath ["features" "aufs"] false a.kernel) then let s = import ./src-for-default.nix; buildInputs = with a; [ @@ -33,3 +35,4 @@ rec { linux; }; } +else throw "Kernel doesn't support AUFS"