diff --git a/debian/changelog b/debian/changelog index 238d4f86..dc2d39bd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.692) groovy; urgency=medium + + * Create a 1GB swapfile for the raspi desktop images. + + -- Ɓukasz 'sil2100' Zemczak Thu, 15 Oct 2020 11:23:47 +0200 + livecd-rootfs (2.691) groovy; urgency=medium * Remove 68-del-part-nodes.rules from installer squashfs to work around it diff --git a/live-build/ubuntu/hooks/099-ubuntu-image-customization.chroot b/live-build/ubuntu/hooks/099-ubuntu-image-customization.chroot index 1363d677..d59d6c69 100644 --- a/live-build/ubuntu/hooks/099-ubuntu-image-customization.chroot +++ b/live-build/ubuntu/hooks/099-ubuntu-image-customization.chroot @@ -19,5 +19,12 @@ if [ "$IMAGEFORMAT" == "none" ]; then # Make the writable partition grow echo "LABEL=writable / ext4 defaults,x-systemd.growfs 0 0" >>/etc/fstab + + # Create a 1GB swapfile + dd if=/dev/zero of=/swapfile bs=1G count=1 + chmod 0600 /swapfile + mkswap /swapfile + + echo "/swapfile none swap sw 0 0" >>/etc/fstab fi fi