From bfeba298630324aee0c0578e7e9a37fd873fd18d Mon Sep 17 00:00:00 2001 From: Philip Roche Date: Wed, 8 Dec 2021 11:25:46 +0000 Subject: [PATCH] Bump UEFI disk image size for armhf to 3.5 GB LP:#1953609 Current impish builds fail with: ``` cp: error writing 'mountpoint/var/lib/snapd/snaps/snapd_14067.snap': No space left on device cp: cannot create directory 'mountpoint/var/lib/snapd/ssl': No space left on device ``` This is a cherrypick backport from ubuntu/master --- debian/changelog | 8 ++++++++ live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/debian/changelog b/debian/changelog index 4564abf5..41ef2b8e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.742.2) impish; urgency=medium + + * Bump UEFI disk image size for armhf to 3.5 GB (LP: #1953609) + Current builds are failing because the disk size is not big enough. + This a backport from jammy and upstream livecd-rootfs:ubuntu/master. + + -- Phil Roche Wed, 08 Dec 2021 11:24:18 +0000 + livecd-rootfs (2.742.1) impish; urgency=medium [ Thomas Bechtold ] diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary index c73d0fe2..edfa5815 100755 --- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary @@ -21,6 +21,11 @@ case ${PROJECT:-} in ;; esac +if [ "$ARCH" = "armhf" ]; then + # bump to 3.5G (3584*1024**2); Since Impish and Jammy armhf need more then the default 2.2G + IMAGE_SIZE=3758096384 +fi + # Change image size for preinstalled generic images & all preinstalled riscv64 images if [ -n "${SUBARCH:-}" ]; then if [ "${SUBARCH:-}" = "generic" ] || [ "$ARCH" = "riscv64" ]; then