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