Merge pull request #2378 from wizeman/u/kernel-zram
linux: Add support for zram
This commit is contained in:
commit
f9c05a3bad
1 changed files with 6 additions and 0 deletions
|
@ -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}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue