root: fix zram

This commit is contained in:
lelgenio 2021-10-30 01:43:59 -03:00
parent a887e0ddd3
commit f0312168d0
3 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@ config:
filter_file:
- "../funcs.py"
import_configs:
- ../config.yaml
- "../config.yaml"
###############################################################

View File

@ -1,3 +1,5 @@
# {{@@ header() @@}}
{%@@ if zram @@%}
zram
{%@@ endif @@%}

View File

@ -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 @@%}