all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Folke Gleumes <f.gleumes@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH installer 1/3] perform early check on hdsize
Date: Tue, 21 Nov 2023 14:20:19 +0100	[thread overview]
Message-ID: <20231121132021.219504-1-f.gleumes@proxmox.com> (raw)

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





             reply	other threads:[~2023-11-21 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 13:20 Folke Gleumes [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231121132021.219504-1-f.gleumes@proxmox.com \
    --to=f.gleumes@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal