From 57f6c1027c1523511aaee57494d1ce17a0916749 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sun, 11 Aug 2024 16:05:43 +0500 Subject: [PATCH] Add zram rule --- drop/99-zram.rules | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 drop/99-zram.rules diff --git a/drop/99-zram.rules b/drop/99-zram.rules new file mode 100644 index 0000000..20d5c4d --- /dev/null +++ b/drop/99-zram.rules @@ -0,0 +1,2 @@ +# /etc/udev/rules.d/99-zram.rules +ACTION=="add", KERNEL=="zram0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="4G", RUN="/usr/bin/mkswap -U clear /dev/%k", TAG+="systemd" \ No newline at end of file