public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer 1/3] perform early check on hdsize
@ 2023-11-21 13:20 Folke Gleumes
  2023-11-21 13:20 ` [pve-devel] [PATCH installer 2/3] set correct maximum for hdsize input Folke Gleumes
  2023-11-21 13:20 ` [pve-devel] [PATCH installer 3/3] only set hdsize when deviating from the maximum Folke Gleumes
  0 siblings, 2 replies; 3+ messages in thread
From: Folke Gleumes @ 2023-11-21 13:20 UTC (permalink / raw)
  To: pve-devel

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

Signed-off-by: Folke Gleumes <f.gleumes@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-21 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 13:20 [pve-devel] [PATCH installer 1/3] perform early check on hdsize Folke Gleumes
2023-11-21 13:20 ` [pve-devel] [PATCH installer 2/3] set correct maximum for hdsize input Folke Gleumes
2023-11-21 13:20 ` [pve-devel] [PATCH installer 3/3] only set hdsize when deviating from the maximum Folke Gleumes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal