mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-09 18:31:11 +00:00
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
This commit is contained in:
parent
a8b2a9b01e
commit
51d4756700
@ -12,17 +12,20 @@ esac
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
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
|
||||
|
||||
if [ "$ARCH" = "riscv64" ]; then
|
||||
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2); initrd creation fails with "No space left" with 3.5G
|
||||
fi
|
||||
case "$ARCH" in
|
||||
amd64|arm64|armhf)
|
||||
# 3.5 GiB
|
||||
# Since Kinetic amd64 need more then the default 2.2G
|
||||
# Since Jammy armhf need more then the default 2.2G
|
||||
# Since Mantic arm64 need more then the default 2.2G
|
||||
IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2);
|
||||
;;
|
||||
riscv64)
|
||||
# 4.5 GiB
|
||||
# initrd creation fails with "No space left" with 3.5G
|
||||
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2);
|
||||
;;
|
||||
esac
|
||||
|
||||
. config/binary
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user