diff --git a/docs/skills/ddi-installer.md b/docs/skills/ddi-installer.md index f6fdfcf1..a511f943 100644 --- a/docs/skills/ddi-installer.md +++ b/docs/skills/ddi-installer.md @@ -94,7 +94,7 @@ container runtime pod sandboxes. | Partition | Type | Size | Contents | |---|---|---|---| | ESP | vfat | 500 MiB – 1 GiB | `systemd-boot` + target OS UKI (`bluefin-server.efi`) | -| `bluefin-server-root-a` | XFS | 4 GiB – 16 GiB | OS root filesystem (copied from installer data partition) | +| `bluefin-server-root-a` | XFS | 4 GiB – 8 GiB | OS root filesystem (copied from installer data partition) | | `var` | XFS | ≥ 4 GiB | Writable persistent `/var`; grows to fill remaining disk | ## Installer Boot Flow diff --git a/files/installer/repart.d/20-root-a.conf b/files/installer/repart.d/20-root-a.conf index b10319bd..e843b30a 100644 --- a/files/installer/repart.d/20-root-a.conf +++ b/files/installer/repart.d/20-root-a.conf @@ -7,5 +7,5 @@ Type=root Label=bluefin-server-root-a CopyBlocks=/dev/disk/by-partlabel/bluefin-installer-data SizeMinBytes=4G -SizeMaxBytes=16G +SizeMaxBytes=8G GrowFileSystem=yes diff --git a/tests/unit/test_repart_layout.py b/tests/unit/test_repart_layout.py index bf5a0bd0..f0127fc8 100644 --- a/tests/unit/test_repart_layout.py +++ b/tests/unit/test_repart_layout.py @@ -180,6 +180,10 @@ def test_root_slot_grows_and_is_bounded_below_the_var_partition(): assert "SizeMaxBytes" in root, ( "the root slot must be capped, otherwise /var gets no space on small disks" ) + assert parse_size(root["SizeMaxBytes"]) <= 8 * 1024**3, ( + "the root slot must be capped at 8G or less so /var is guaranteed at least " + "its SizeMinBytes (4G) on standard 16G target disks" + ) def test_var_is_a_growing_xfs_tail():