Skip to content

Commit

Permalink
Increase eve rootfs partition size to 5G for kubevirt
Browse files Browse the repository at this point in the history
For kubevirt eve we will create partition of 5GB each.
During build we verify if the rootfs size reached 4.5GB and terminate build.
This will help us catch the image size increase ahead of reaching the actual limit.

Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
  • Loading branch information
Pramodh Pallapothu committed Jan 27, 2025
1 parent 7b88861 commit 2f8c7b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ endif
# The rootfs partition size is set to 512MB after 10.2.0 release (see commit 719b4d516)
# Before 10.2.0 it was 300MB. We must maintain compatibility with older versions so rootfs size cannot exceed 300MB.
# kubevirt and nvidia are not affected by this limitation because there no installation of kubevirt prior to 10.2.0
# Nethertheless lets check for ROOTFS_MAXSIZE_MB not exceeding 450MB for kubevirt and ARM and 270MB for x86_64
# Nethertheless lets check for ROOTFS_MAXSIZE_MB not exceeding 4500MB for kubevirt and ARM and 270MB for x86_64
# That helps in catching image size increases earlier than at later stage.
# We are currently filtering out a few packages from bulk builds since they are not getting published in Docker HUB
ifeq ($(HV),kubevirt)
PKGS_$(ZARCH)=$(shell find pkg -maxdepth 1 -type d | grep -Ev "eve|alpine|sources$$")
ROOTFS_MAXSIZE_MB=450
ROOTFS_MAXSIZE_MB=4500
else
#kube container will not be in non-kubevirt builds
PKGS_$(ZARCH)=$(shell find pkg -maxdepth 1 -type d | grep -Ev "eve|alpine|sources|kube|external-boot-image$$")
Expand Down
5 changes: 5 additions & 0 deletions pkg/mkimage-raw-efi/make-raw
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ EFI_PART_SIZE=$((36 * 1024 * 1024))
# Warning: free space and rellocate all tables if image has
# Warning: been bloated.
ROOTFS_PART_SIZE_MIN=$((512 * 1024 * 1024))
# For kubevirt eve lets set partition size to 5GB
eve_flavor=$(cat /root/etc/eve-hv-type)
if [ "$eve_flavor" = "kubevirt" ]; then
ROOTFS_PART_SIZE_MIN=$((5 * 1024 * 1024 * 1024))
fi
# conf partition size in bytes
CONF_PART_SIZE=$((1024 * 1024))
# installer inventory partition size in bytes
Expand Down

0 comments on commit 2f8c7b9

Please sign in to comment.