Create swapfile on initial install

This commit is contained in:
Andrew Tomaka 2014-03-18 13:05:07 -04:00
parent 5e297371b5
commit a80be2b299

View file

@ -26,6 +26,11 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
fi fi
if [ "$SETUP" = true ] ; then if [ "$SETUP" = true ] ; then
# SWAPFILE
dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile
# SET TIMESTAMP # SET TIMESTAMP
echo "America/New_York" | tee /etc/timezone echo "America/New_York" | tee /etc/timezone
dpkg-reconfigure --frontend noninteractive tzdata dpkg-reconfigure --frontend noninteractive tzdata