[pve-devel] [PATCH installer 1/3] perform early check on hdsize

Folke Gleumes f.gleumes at proxmox.com
Tue Nov 21 14:20:19 CET 2023


until now it was only checked at install time, failing the whole
installation

Signed-off-by: Folke Gleumes <f.gleumes at proxmox.com>
---
 proxinstall | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/proxinstall b/proxinstall
index 01d4cfe..cf8f510 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1526,6 +1526,12 @@ sub create_hdsel_view {
 	    $target_hds = [ $target_hd ];
 	}
 
+	my $hdsize = Proxmox::Install::Config::get_hdsize();
+	if (defined $hdsize && $hdsize < 2.0) {
+	    Proxmox::UI::message("Warning: A minimum disk size of 2.0GB is expected.\n");
+	    return;
+	}
+
 	$step_number++;
 	create_country_view();
     });
-- 
2.39.2






More information about the pve-devel mailing list