Skip to content

Commit

Permalink
Increase rootfs size to 350Mb
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 committed Oct 14, 2024
1 parent e7bb230 commit fb904c6
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 @@ -363,11 +363,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)
# Befor 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 becasue 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.

Check failure on line 370 in Makefile

View workflow job for this annotation

GitHub Actions / yetus

codespell: Befor ==> Before
# We are currently filtering out a few packages from bulk builds since they are not getting published in Docker HUB

Check failure on line 371 in Makefile

View workflow job for this annotation

GitHub Actions / yetus

codespell: becasue ==> because
ifeq ($(HV),kubevirt)
PKGS_$(ZARCH)=$(shell find pkg -maxdepth 1 -type d | grep -Ev "eve|alpine|sources$$")
ROOTFS_MAXSIZE_MB=450
Expand All @@ -378,7 +379,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 fb904c6

Please sign in to comment.