From 76d794664a9dd40165fed258ac9b741fabd5111e Mon Sep 17 00:00:00 2001 From: Ivan Kapelyukhin Date: Wed, 14 Sep 2022 18:56:50 +0200 Subject: [PATCH] Bump UEFI disk image size for amd64 to 3.5 GB Current Kinetic GCE image builds are failing with the following error: update-initramfs: Generating /boot/initrd.img-5.19.0-1004-gcp zstd: error 25 : Write error : No space left on device (cannot write compressed block) E: mkinitramfs failure zstd -q -1 -T0 25 Seems like after `linux-gcp` update from 5.15 to 5.19 `linux-modules` package has gotten ~40MB larger and with that GCE image builds are over the edge wrt available disk space in chroot. Bumped up disk image size for amd64 to 3.5GB to match the sizes used by armhf and generic images. --- 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 3a9fe398..e6a21db9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.779) kinetic; urgency=medium + + * ubuntu-cpc/hooks.d/base/disk-image-uefi.binary: Bump UEFI disk image + size for amd64 to 3.5 GB. + Current builds are failing because the disk size is not big enough. + + -- Ivan Kapelyukhin Wed, 14 Sep 2022 18:55:20 +0200 + livecd-rootfs (2.778) kinetic; urgency=medium [ Rudra Saraswat ] 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 aaf4e401..e0983b0f 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" = "amd64" ]; then + IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Kinetic amd64 need more then the default 2.2G +fi + 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