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

Signed-off-by: Folke Gleumes <[email protected]>
---
 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



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to