From a80be2b29961cff76d50753a67afd3874daa0036 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 18 Mar 2014 13:05:07 -0400 Subject: [PATCH] Create swapfile on initial install --- bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 4e88fb4..60f8e61 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -26,6 +26,11 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then fi if [ "$SETUP" = true ] ; then + # SWAPFILE + dd if=/dev/zero of=/swapfile bs=1024 count=512k + mkswap /swapfile + swapon /swapfile + # SET TIMESTAMP echo "America/New_York" | tee /etc/timezone dpkg-reconfigure --frontend noninteractive tzdata