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