mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-31 21:01:13 +00:00
Add creation of a 1GB swapfile for desktop pi images.
This commit is contained in:
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…
x
Reference in New Issue
Block a user