linux: Add support for zram

This commit is contained in:
Ricardo M. Correia 2014-04-24 14:03:18 +02:00
parent 23297b0edd
commit f0e3775f2e

View File

@ -317,6 +317,12 @@ with stdenv.lib;
TRANSPARENT_HUGEPAGE_ALWAYS? n
TRANSPARENT_HUGEPAGE_MADVISE? y
# zram support (e.g for in-memory compressed swap)
${optionalString (versionAtLeast version "3.4") ''
ZSMALLOC y
''}
ZRAM m
${kernelPlatform.kernelExtraConfig or ""}
${extraConfig}
''