Update pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh
This commit is contained in:
parent
6fa4e2b553
commit
c8708e2147
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user