Skip to content

Commit

Permalink
Increase rootfs size to 270Mb
Browse files Browse the repository at this point in the history
- 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 <mike.malyshev@gmail.com>
  • Loading branch information
rucoder authored and eriknordmark committed Oct 15, 2024
1 parent 1d2ad7a commit 6dd9b52
Showing 1 changed file with 7 additions and 6 deletions.
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

0 comments on commit 6dd9b52

Please sign in to comment.