public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer] install: ask for patience when making system bootable
@ 2024-11-15 12:43 Christian Ebner
  2024-11-15 13:35 ` Thomas Lamprecht
  2024-11-15 14:33 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Ebner @ 2024-11-15 12:43 UTC (permalink / raw)
  To: pve-devel

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


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

end of thread, other threads:[~2024-11-15 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-15 12:43 [pve-devel] [PATCH installer] install: ask for patience when making system bootable Christian Ebner
2024-11-15 13:35 ` Thomas Lamprecht
2024-11-15 13:45   ` Christian Ebner
2024-11-15 14:33 ` [pve-devel] applied: " Thomas Lamprecht

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