Change LVM /root def to adapt dynamically (#4005)

* Change def size from 20 -> 32
Rest is still calculated from available - root.

* Use the existing process_root_partition_size():
For LVM just like regular disk best-effort.
This is only for single disk layouts.
This commit is contained in:
HADEON 2025-12-22 12:05:30 +01:00 committed by GitHub
parent ba5f924540
commit 1227babd8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ def suggest_lvm_layout(
[p.length for p in other_part],
Size(0, Unit.B, SectorSize.default()),
)
root_vol_size = Size(20, Unit.GiB, SectorSize.default())
root_vol_size = process_root_partition_size(total_vol_available, SectorSize.default())
home_vol_size = total_vol_available - root_vol_size
lvm_vol_group = LvmVolumeGroup(vg_grp_name, pvs=other_part)