Fixing an additional missing check for linuxPackages/kernelPackages in tests.

svn path=/nixos/trunk/; revision=19444
This commit is contained in:
Lluís Batlle i Rossell 2010-01-14 20:23:03 +00:00
parent 13ee735395
commit 473c9d8881

View File

@ -78,7 +78,8 @@ let
# Make the Nix store in this VM writable using AUFS. Use Linux
# 2.6.27 because 2.6.32 doesn't work (probably we need AUFS2).
# This should probably be moved to qemu-vm.nix.
boot.kernelPackages = pkgs.kernelPackages_2_6_27;
boot.kernelPackages = (if pkgs ? linuxPackages then
pkgs.linuxPackages_2_6_27 else pkgs.kernelPackages_2_6_27);
boot.extraModulePackages = [ config.boot.kernelPackages.aufs ];
boot.initrd.availableKernelModules = [ "aufs" ];