Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase rootfs size to 270Mb #4329

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -381,7 +382,7 @@ else
ifeq ($(PLATFORM),nvidia)
ROOTFS_MAXSIZE_MB=450
else
ROOTFS_MAXSIZE_MB=250
ROOTFS_MAXSIZE_MB=270
endif
endif

Expand Down
Loading