From c8708e2147ee80f0191ad3760719457c4aeb5e45 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (CosmicFusion)" Date: Wed, 4 Sep 2024 10:42:00 +0200 Subject: [PATCH] Update pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh --- .../usr/lib/pika/pikainstall/pika-install-chroot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh index 70a8489..a913ce3 100755 --- a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh +++ b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh @@ -8,6 +8,13 @@ touch /etc/fstab # Generate fstab entries dpkg -s arch-install-scripts || apt install -y arch-install-scripts cryptsetup genfstab -U / | grep -v zram | grep -v portal | grep -v loop | grep -v cdrom | grep -v swap > /etc/fstab +# Enable zram if there's no swaplist +if [ ! -f /tmp/pika-installer-gtk4-swaplist ] +then + apt install -y /var/cache/apt/archives/zram-tools*.deb + echo -e "ALGO=zstd\nPERCENT=25" | tee -a /etc/default/zramswap + systemctl enable zramswap || true +fi # Remove packages that are only needed for the live session apt autoremove -y # Setup Crypttab if needed