From 9924c01c5f85c74cb14c004f9f8780da71e2d004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Sat, 16 Dec 2017 12:01:28 +0100 Subject: [PATCH] Add config for adding a 2G swap file This is what was done for multicol and noembed, except they got 4G, which is a bit excessive. --- debian/common/06-swap | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 debian/common/06-swap diff --git a/debian/common/06-swap b/debian/common/06-swap new file mode 100755 index 0000000..6fbfe07 --- /dev/null +++ b/debian/common/06-swap @@ -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