1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/zram-init/default-lz4.patch
Natanael Copa fff4481341 community/zram-init: fix depend and default algo
zram-init depends on zramctl from util-linux so add that as explicit
depends.

the alpine kernel does not support crypto zstd so use lz4 algo as
default.

ref #10044
2019-03-05 10:11:17 +00:00

49 lines
1.3 KiB
Diff

diff --git a/openrc/conf.d/zram-init b/openrc/conf.d/zram-init
index 06871f3..9d6ce70 100644
--- a/openrc/conf.d/zram-init
+++ b/openrc/conf.d/zram-init
@@ -54,7 +54,7 @@ mlim0= # no hard memory limit
back0= # no backup device
notr0= # keep the default on linux-3.15 or newer
maxs0=1 # maximum number of parallel processes for this device
-algo0=zstd # zstd (since linux-4.18), lz4 (since linux-3.15), or lzo.
+algo0=lz4 # zstd (since linux-4.18), lz4 (since linux-3.15), or lzo.
# Size: zstd (best) > lzo > lz4. Speed: lz4 (best) > zstd > lzo
labl0=zram_swap # the label name
uuid0= # Do not force UUID
@@ -74,7 +74,7 @@ mode1=1777
owgr1= # No reason to change the default "root:root"
notr1= # keep the default on linux-3.15 or newer
maxs1=2
-algo1=zstd
+algo1=lz4
labl1=tmp_dir
uuid1=
args1=
@@ -90,7 +90,7 @@ mode2=1777
owgr2= # No reason to change the default "root:root"
notr2= # keep the default on linux-3.15 or newer
maxs2=1
-algo2=zstd
+algo2=lz4
labl2=var_tmp_dir
uuid2=
args2=
@@ -100,7 +100,7 @@ type3=- # Only format the filesystem but actually do not mount it
flag3=btrfs
size3=1024
maxs3=1
-algo3=zstd
+algo3=lz4
labl3=zbtrfs
uuid3=
args3=
@@ -114,7 +114,7 @@ type3=swap
flag3=
size3=512
maxs3=1
-algo3=zstd
+algo3=lz4
labl3=zram_swap2
uuid3=
args3=