root: fix zram
This commit is contained in:
parent
a887e0ddd3
commit
f0312168d0
|
@ -20,7 +20,7 @@ config:
|
|||
filter_file:
|
||||
- "../funcs.py"
|
||||
import_configs:
|
||||
- ../config.yaml
|
||||
- "../config.yaml"
|
||||
|
||||
|
||||
###############################################################
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# {{@@ header() @@}}
|
||||
|
||||
{%@@ if zram @@%}
|
||||
zram
|
||||
{%@@ endif @@%}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# {{@@ header() @@}}
|
||||
|
||||
{%@@ if zram @@%}
|
||||
KERNEL=="zram0", ATTR{disksize}="{{@@ memory_size | int // 4 // 1024 // 1024 @@}}M" RUN="/usr/bin/mkswap /dev/zram0"
|
||||
{%@@ endif @@%}
|
||||
|
|
Reference in New Issue