Skip to content

Commit

Permalink
Add config for adding a 2G swap file
Browse files Browse the repository at this point in the history
This is what was done for multicol and noembed, except they got 4G,
which is a bit excessive.
  • Loading branch information
foolip committed Dec 17, 2017
1 parent 103b860 commit 9924c01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions debian/common/06-swap
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -e

# https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab

0 comments on commit 9924c01

Please sign in to comment.