Enforce 20GiB minimum vm_size

This commit is contained in:
2026-01-02 16:18:14 +01:00
parent 396d802dc3
commit 65ef8cb1ca
2 changed files with 14 additions and 13 deletions

View File

@@ -52,10 +52,7 @@
install_type == "physical"
or (
vm_size is defined
and (
(filesystem == "btrfs" and (vm_size | int) >= 10)
or (filesystem != "btrfs" and (vm_size | int) >= 20)
)
and (vm_size | int) >= 20
)
)
- >-
@@ -64,15 +61,19 @@
or (
vm_size is defined
and vm_memory is defined
and filesystem is defined
and (
(vm_size | float)
>= (
(vm_memory | float / 1024 >= 16.0)
| ternary(
(vm_memory | float / 2048),
[vm_memory | float / 1024, 4.0] | max
)
+ 16
filesystem != "btrfs"
or (
(vm_size | float)
>= (
(vm_memory | float / 1024 >= 16.0)
| ternary(
(vm_memory | float / 2048),
[vm_memory | float / 1024, 4.0] | max
)
+ 5.5
)
)
)
)