[pve-devel] [PATCH installer] create lvm: improve rounding/alignment for non-pve products
Stoiko Ivanov
s.ivanov at proxmox.com
Mon Nov 28 21:41:10 CET 2022
This commit follows
1a5fa7b0936381314f613e525255078093f7f258
for PMG and PBS installations.
without it installation fails due to one missing extent when creating
the root LV.
minimally tested on a VM of mine
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
proxinstall | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxinstall b/proxinstall
index c07e6cd..396e344 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1155,6 +1155,7 @@ sub create_lvm_volumes {
} else {
my $minfree = defined($config_options->{minfree}) ? $config_options->{minfree}*1024*1024 : $space;
$rootsize = $os_size - $minfree - $swap_size; # in KB
+ $rootsize &= ~0xFFF; # align down to 4 MB boundaries
}
if ($swap_size) {
--
2.30.2
More information about the pve-devel
mailing list