Update iso-image.nix to work with kernels that use AUFS 2.1 instead of AUFS 2. Older kernels are unaffected.

svn path=/nixos/trunk/; revision=26646
This commit is contained in:
Shea Levy 2011-03-31 23:03:54 +00:00
parent 1e2c0d6284
commit f269206972

View File

@ -148,8 +148,10 @@ in
# and aufs to make the root filesystem appear writable.
boot.extraModulePackages =
optional
(! config.boot.kernelPackages.kernel.features ? aufs)
config.boot.kernelPackages.aufs2;
(! ( config.boot.kernelPackages.kernel.features ? aufs || config.boot.kernelPackages.kernel.features ? aufs2_1 ) )
config.boot.kernelPackages.aufs2
++ optional( config.boot.kernelPackages.kernel.features ? aufs2_1 )
config.boot.kernelPackages.aufs2_1;
boot.initrd.availableKernelModules = [ "aufs" "squashfs" "iso9660" ];