From a15cc5e9185f504e47b2d3845b7f2fb6c5010484 Mon Sep 17 00:00:00 2001 From: fy59 Date: Mon, 5 Oct 2026 13:29:45 +0200 Subject: [PATCH] fix(reconstruction): disable zswap and persist zram policy --- rootfs/etc/limine-snapper-sync.conf | 1 + rootfs/etc/systemd/zram-generator.conf | 2 ++ templates/limine.conf | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/limine-snapper-sync.conf b/rootfs/etc/limine-snapper-sync.conf index 6cda0b3..c7a1a85 100644 --- a/rootfs/etc/limine-snapper-sync.conf +++ b/rootfs/etc/limine-snapper-sync.conf @@ -89,6 +89,7 @@ MAX_SNAPSHOT_ENTRIES=20 ### Examples: #SNAPSHOT_KERNEL_PARAMETERS-=quiet splash #SNAPSHOT_KERNEL_PARAMETERS+=systemd.volatile=overlay +SNAPSHOT_KERNEL_PARAMETERS+=zswap.enabled=0 ### Make Snapshots Writable diff --git a/rootfs/etc/systemd/zram-generator.conf b/rootfs/etc/systemd/zram-generator.conf index b5d98af..87514df 100644 --- a/rootfs/etc/systemd/zram-generator.conf +++ b/rootfs/etc/systemd/zram-generator.conf @@ -1,2 +1,4 @@ [zram0] +zram-size = 6144 compression-algorithm = zstd +swap-priority = 100 diff --git a/templates/limine.conf b/templates/limine.conf index 43f23a0..206f4d6 100644 --- a/templates/limine.conf +++ b/templates/limine.conf @@ -17,13 +17,13 @@ default_entry: 2 kernel_path: boot():/vmlinuz-linux-zen module_path: boot():/amd-ucode.img module_path: boot():/initramfs-linux-zen.img - kernel_cmdline: root=UUID=@ROOT_UUID@ rw rootflags=subvol=@ quiet loglevel=3 + kernel_cmdline: root=UUID=@ROOT_UUID@ rw rootflags=subvol=@ quiet loglevel=3 zswap.enabled=0 //Kernel LTS protocol: linux kernel_path: boot():/vmlinuz-linux-lts module_path: boot():/amd-ucode.img module_path: boot():/initramfs-linux-lts.img - kernel_cmdline: root=UUID=@ROOT_UUID@ rw rootflags=subvol=@ quiet loglevel=3 + kernel_cmdline: root=UUID=@ROOT_UUID@ rw rootflags=subvol=@ quiet loglevel=3 zswap.enabled=0 //Snapshots