From 44b476e1d00ec5883d57c644a91d070587e3d471 Mon Sep 17 00:00:00 2001 From: nocode Date: Tue, 7 Jul 2026 02:47:35 +0200 Subject: [PATCH] feat(zram): add zram-generator configuration for live environment Enable compressed swap in RAM (zram) for the live environment to prevent memory saturation issues on systems with limited RAM. This configuration provides necessary headroom during Anaconda installation by leveraging zram's ~3:1 compression ratio on Python heaps. The configuration is automatically copied to installed systems via LiveOS payload, maintaining this safety net post-installation on modest hardware. --- .../releng/airootfs/etc/systemd/zram-generator.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 configs/releng/airootfs/etc/systemd/zram-generator.conf diff --git a/configs/releng/airootfs/etc/systemd/zram-generator.conf b/configs/releng/airootfs/etc/systemd/zram-generator.conf new file mode 100644 index 0000000..14baff0 --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/zram-generator.conf @@ -0,0 +1,12 @@ +# FWS — swap compressé en RAM (zram), activé automatiquement par +# zram-generator (paquet dans packages.x86_64, aucun service à activer). +# +# Le LIVE n'a AUCUN swap : sur une machine/VM à 2 Go, Anaconda + le rootfs +# squashfs saturent la mémoire → livelock, écran figé pendant « Préparation +# de l'installateur ». Le zram (compression ~3:1 sur les tas Python) donne +# la marge nécessaire. Copié tel quel sur le SYSTÈME INSTALLÉ par le payload +# LiveOS → FWS garde ce filet de sécurité après installation (esprit +# « remplaçant de Windows » sur des machines modestes). +[zram0] +zram-size = min(ram, 4096) +compression-algorithm = zstd