linux: only enable CONFIG_NFS_SWAP for v3.6+ kernels

Linux v3.6 is the earliest version with CONFIG_NFS_SWAP support. This
change unbreaks NixOS tests for older kernels.
This commit is contained in:
Bjørn Forsman 2014-07-16 12:08:48 +02:00
parent 9d457ec228
commit 28cb0f58c4
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ with stdenv.lib;
BTRFS_FS_POSIX_ACL y
UBIFS_FS_XATTR? y
UBIFS_FS_ADVANCED_COMPR? y
NFS_SWAP y
${optionalString (versionAtLeast version "3.6") ''
NFS_SWAP y
''}
${optionalString (versionAtLeast version "3.11") ''
NFS_V4_1 y # NFSv4.1 client support
NFS_V4_2 y