From 1a7e9ca8c9c7db434e02efad38ca270eca779339 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 23 Nov 2021 10:16:01 +0100 Subject: [PATCH] Bump UEFI disk image size for armhf to 3.5 GB Current jammy builds fail with: dpkg: error processing archive /var/cache/\ apt/archives/grub-common_2.04-1ubuntu48_armhf.deb (--unpack): cannot copy extracted data for './usr/share/grub/unicode.pf2' \ to '/usr/share/grub/unicode.pf2.dpkg-new': \ failed to write (No space left on device) --- 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 52cb7c19..4905152b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.747) jammy; urgency=medium + + * ubuntu-cpc/hooks.d/base/disk-image-uefi.binary: Bump UEFI disk image + size for armhf to 3.5 GB. + Current builds are failing because the disk size is not big enough. + + -- Thomas Bechtold Tue, 23 Nov 2021 10:15:18 +0100 + livecd-rootfs (2.746) jammy; urgency=medium * Add the capability to build an ISO image for the Intel IoT project. 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