Add creation of a 1GB swapfile for desktop pi images.

pi-desktop-swapfile
Łukasz 'sil2100' Zemczak 4 years ago
parent 66621a8aed
commit 1a8d6d203e

@ -19,5 +19,12 @@ if [ "$IMAGEFORMAT" == "none" ]; then
# Make the writable partition grow # Make the writable partition grow
echo "LABEL=writable / ext4 defaults,x-systemd.growfs 0 0" >>/etc/fstab echo "LABEL=writable / ext4 defaults,x-systemd.growfs 0 0" >>/etc/fstab
# Create a 1GB swapfile
dd if=/dev/zero of=/swapfile bs=1M count=1024
chmod 0600 /swapfile
mkswap /swapfile
echo "/swapfile none swap sw 0 0" >>/etc/fstab
fi fi
fi fi

Loading…
Cancel
Save