[pve-devel] [PATCH installer] abort installation if memory is less than 1GB

Oguz Bektas o.bektas at proxmox.com
Tue Jul 2 15:17:32 CEST 2019


show a message on screen about memory requirement, then die and abort
the installation.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 proxinstall | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/proxinstall b/proxinstall
index e6a29b3..f8dd1d6 100755
--- a/proxinstall
+++ b/proxinstall
@@ -3234,6 +3234,11 @@ sub create_intro_view {
 
     cleanup_view();
 
+    if (int($total_memory/1024) < 1) {
+	display_error("you need at least 1GB memory to install Proxmox\n");
+	die "not enough memory";
+    }
+
     if ($setup->{product} eq 'pve') {
 	eval {
 	    my $cpuinfo = file_get_contents('/proc/cpuinfo');
-- 
2.11.0





More information about the pve-devel mailing list