enable zram in the debian rootfs

This commit is contained in:
ading2210 2023-11-07 20:38:52 +00:00
parent d358d56b3e
commit 5990ca5df2
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,2 @@
zram
lzo

View File

@ -29,7 +29,13 @@ apt-get upgrade -y
systemctl enable kill-frecon.service systemctl enable kill-frecon.service
#install desktop #install desktop
apt-get install -y task-xfce-desktop cloud-utils apt-get install -y task-xfce-desktop cloud-utils zram-tools
#set up zram
tee -a /etc/default/zramswap << END
ALGO=lzo
PERCENT=50
END
#set up hostname and username #set up hostname and username
read -p "Enter the hostname for the system: " hostname read -p "Enter the hostname for the system: " hostname