duh, Laney is right, we can do 1G straight away.

pi-desktop-swapfile
Łukasz 'sil2100' Zemczak 4 years ago
parent af0356e402
commit 5d0e1c602a

@ -21,7 +21,7 @@ if [ "$IMAGEFORMAT" == "none" ]; then
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 # Create a 1GB swapfile
dd if=/dev/zero of=/swapfile bs=1M count=1024 dd if=/dev/zero of=/swapfile bs=1G count=1
chmod 0600 /swapfile chmod 0600 /swapfile
mkswap /swapfile mkswap /swapfile

Loading…
Cancel
Save