1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

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}
''