geerlingguy / diet-raspbian

DEPRECATED - Trim the fat from the default Raspbian image.
http://files.midwesternmac.com/#raspberry-pi-images
34 stars 6 forks source link

Disable swap, remove swapfile #3

Closed geerlingguy closed 9 years ago

geerlingguy commented 9 years ago
# Disable swap.
sudo swapoff -a

# Remove swap file.
sudo rm -f /var/swap

Can we automate this in the playbook—and if so, will the swapfile be automatically recreated correctly next time the system is booted?

geerlingguy commented 9 years ago

It can definitely be automated... working on updating the docs now. On reboot, the 100M swap file at /var/swap is recreated.