walnut.js/snippets/make-swap.sh

13 lines
294 B
Bash

# /etc/dphys-swapfile
fallocate -l 1G /mnt/data/swapfile
mkswap /mnt/data/swapfile
swapon /mnt/data/swapfile
#sudo service dphys-swapfile start
#cat /etc/dphys-swapfile
#CONF_SWAPSIZE=1024
#CONF_SWAPFILE=/mnt/data/swapfile
# TODO
# there are ramifications to having this on unencrypted disk