ubuntu-cpc: increase arm64 image size

This is needed following the addition of the new boot partition. This
also gives us the opportunity to refactor the logic and use a case
statement instead of ifs
ubuntu/mantic
Gauthier Jolly 1 year ago committed by Thomas Bechtold
parent a8b2a9b01e
commit 51d4756700

@ -12,17 +12,20 @@ esac
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process" IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
FS_LABEL="cloudimg-rootfs" FS_LABEL="cloudimg-rootfs"
if [ "$ARCH" = "amd64" ]; then case "$ARCH" in
IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Kinetic amd64 need more then the default 2.2G amd64|arm64|armhf)
fi # 3.5 GiB
# Since Kinetic amd64 need more then the default 2.2G
if [ "$ARCH" = "armhf" ]; then # Since Jammy armhf need more then the default 2.2G
IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Jammy armhf need more then the default 2.2G # Since Mantic arm64 need more then the default 2.2G
fi IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2);
;;
if [ "$ARCH" = "riscv64" ]; then riscv64)
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2); initrd creation fails with "No space left" with 3.5G # 4.5 GiB
fi # initrd creation fails with "No space left" with 3.5G
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2);
;;
esac
. config/binary . config/binary

Loading…
Cancel
Save