From 28bb47928b3a3dc568ec77419fd82d2bb4f4bcaf Mon Sep 17 00:00:00 2001 From: Philip Roche Date: Wed, 8 Dec 2021 09:19:48 +0000 Subject: [PATCH] Bump UEFI disk image size for armhf to 3.5 GB 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 cherry pick backport from jammy --- debian/changelog | 8 ++++++++ live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index 4564abf5..f7d3a407 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 + 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 08:15: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..da2660c8 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,10 @@ case ${PROJECT:-} in ;; esac +if [ "$ARCH" = "armhf" ]; then + IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Jammy armhf need more then the default 2.2G +fi + # Change image size for preinstalled generic images & all preinstalled riscv64 images if [ -n "${SUBARCH:-}" ]; then if [ "${SUBARCH:-}" = "generic" ] || [ "$ARCH" = "riscv64" ]; then