Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion files/installer/repart.d/20-root-a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
# systemd-repart copies the DDI payload block-for-block from the embedded
# installer data partition on the boot medium.
# The source is a raw filesystem image; repart copies it verbatim.
# SizeMaxBytes bounds root-a's elastic growth to a realistic OS-payload size.
# It must never be set to the full test/VM disk size: with GrowFileSystem=yes
# and an unbounded cap, root-a's growth can consume the leftover space that
# /var (the tail partition, see 30-var.conf) needs, so the second boot drops
# to emergency mode waiting on /dev/disk/by-partlabel/var (issue #161).
[Partition]
Type=root
Label=bluefin-server-root-a
CopyBlocks=/dev/disk/by-partlabel/bluefin-installer-data
SizeMinBytes=4G
SizeMaxBytes=16G
SizeMaxBytes=8G
GrowFileSystem=yes
4 changes: 4 additions & 0 deletions files/installer/repart.d/30-var.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
# creating /var entirely.
# GrowFileSystem=yes: XFS grows to fill all remaining disk space after
# the ESP and root-a partitions are placed.
# Weight= guarantees /var always gets a dominant share of the leftover disk
# space, so it retains its SizeMinBytes=4G even while root-a's elastic
# growth competes for the same free space (issue #161).
[Partition]
Type=var
Label=var
Format=xfs
GrowFileSystem=yes
CopyFiles=/k0s.raw:/lib/k0s/k0s.raw
SizeMinBytes=4G
Weight=10000