public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH installer] install: ask for patience when making system bootable
Date: Fri, 15 Nov 2024 13:43:18 +0100	[thread overview]
Message-ID: <20241115124318.179424-1-c.ebner@proxmox.com> (raw)

Making the system bootable can take some time if many disks are used
for installation, which could be misinterpreted as a hanging
installer. Add a please be patient output when more than 3 disks are
used.

Output changes from `make system bootable` to
`make system bootable (please be patient)`

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
 Proxmox/Install.pm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm
index 5c64c3d..5c59485 100644
--- a/Proxmox/Install.pm
+++ b/Proxmox/Install.pm
@@ -723,6 +723,7 @@ sub extract_data {
     }
 
     my $bootloader_err;
+    my $diskcount = 0;
 
     eval {
 	my $maxper = 0.25;
@@ -761,6 +762,7 @@ sub extract_data {
 	} elsif ($use_btrfs) {
 
 	    my ($devlist, $btrfs_mode) = get_btrfs_raid_setup();
+	    $diskcount = scalar(@$devlist);
 
 	    foreach my $hd (@$devlist) {
 		wipe_disk(@$hd[1]);
@@ -795,6 +797,7 @@ sub extract_data {
 	} elsif ($use_zfs) {
 
 	    my ($devlist, $vdev) = get_zfs_raid_setup();
+	    $diskcount = scalar(@$devlist);
 
 	    foreach my $hd (@$devlist) {
 		wipe_disk(@$hd[1]);
@@ -842,6 +845,7 @@ sub extract_data {
 	} else {
 	    my $target_hd = Proxmox::Install::Config::get_target_hd();
 	    die "target '$target_hd' is not a valid block device\n" if ! -b $target_hd;
+	    $diskcount = 1;
 
 	    wipe_disk($target_hd);
 
@@ -1241,7 +1245,9 @@ _EOD
 	    debconfig_set($targetdir, "pve-manager pve-manager/country string $ucc\n");
 	}
 
-	update_progress(0.8, 0.95, 1, "make system bootable");
+	my $ask_for_patience = "";
+	$ask_for_patience = " (please be patient)" if $diskcount > 3;
+	update_progress(0.8, 0.95, 1, "make system bootable$ask_for_patience");
 	my $target_cmdline='';
 	if ($target_cmdline = Proxmox::Install::Config::get_target_cmdline()) {
 	    my $target_cmdline_snippet = '';
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2024-11-15 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 12:43 Christian Ebner [this message]
2024-11-15 13:35 ` Thomas Lamprecht
2024-11-15 13:45   ` Christian Ebner
2024-11-15 14:33 ` [pve-devel] applied: " Thomas Lamprecht

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=20241115124318.179424-1-c.ebner@proxmox.com \
    --to=c.ebner@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 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