From 9222d82aa24873bdef98fc9bed2d0de9fdf9193e Mon Sep 17 00:00:00 2001 From: Mikhail Malyshev Date: Tue, 8 Oct 2024 19:45:03 +0200 Subject: [PATCH] Increase rootfs size to 270Mb - We have only ~2Mb left in roofs. It is time to increase its size - Even though the partition size is 512Mb it is still 300Mb on EVE versions prior to 10.2.0 release. Set it 270Mb to keep pressure and address image size problem sooner that we reach 300Mb limit Signed-off-by: Mikhail Malyshev --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 116d0109ed..c43c9cc035 100644 --- a/Makefile +++ b/Makefile @@ -366,11 +366,12 @@ ifeq ($(LINUXKIT_PKG_TARGET),push) endif endif -# Though the partition size is set to 512MB lets check for ROOTFS_MAXSIZE_MB not exceeding 450MB for kubevirt. -# That seems to be the direction taken for existing kvm systems where partition size is 300MB but -# rootfs size is limited to 250MB. 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 +# 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 +# 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 @@ -381,7 +382,7 @@ else ifeq ($(PLATFORM),nvidia) ROOTFS_MAXSIZE_MB=450 else - ROOTFS_MAXSIZE_MB=250 + ROOTFS_MAXSIZE_MB=270 endif endif