Merge pull request #2378 from wizeman/u/kernel-zram

linux: Add support for zram
This commit is contained in:
Michael Raskin 2014-05-27 01:40:18 -07:00
commit f9c05a3bad

View File

@ -323,6 +323,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}
''