A live bird collage card for your Home Assistant dashboard.
fix: zram should have high priority so it is prefered over any other swap, also use a more realistic size for rpi zero 2 w
frederik4f38aabceaeb
diff --git a/scripts/install_zram_service.sh b/scripts/install_zram_service.shindex f343948a..0e5f1586 100755--- a/scripts/install_zram_service.sh+++ b/scripts/install_zram_service.sh@@ -5,7 +5,7 @@ echo 'zram' | sudo tee /etc/modules-load.d/zram.confsudo touch /etc/modprobe.d/zram.confecho 'options zram num_devices=1' | sudo tee /etc/modprobe.d/zram.confsudo touch /etc/udev/rules.d/99-zram.rules-echo 'KERNEL=="zram0", ATTR{disksize}="2G",TAG+="systemd"' \+echo 'KERNEL=="zram0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="500M", TAG+="systemd"' \| sudo tee /etc/udev/rules.d/99-zram.rulessudo touch /etc/systemd/system/zram.serviceecho "Installing zram.service"@@ -17,7 +17,7 @@ After=multi-user.targetType=oneshotRemainAfterExit=trueExecStartPre=/sbin/mkswap /dev/zram0-ExecStart=/sbin/swapon /dev/zram0+ExecStart=/sbin/swapon -p 15 /dev/zram0ExecStop=/sbin/swapoff /dev/zram0[Install]WantedBy=multi-user.target