[pve-devel] [PATCH installer 2/3] only set target_hd if it's not defined already
Oguz Bektas
o.bektas at proxmox.com
Fri Jan 25 16:14:01 CET 2019
* this avoids weird behaviour with the chosen disk when the user changes
the type of filesystem during installation
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
proxinstall | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxinstall b/proxinstall
index 916ce51..96e4ffd 100755
--- a/proxinstall
+++ b/proxinstall
@@ -3043,7 +3043,7 @@ sub create_hdsel_view {
$vbox->pack_start($hbox, 0, 0, 10);
my ($disk, $devname, $size, $model) = @{@$hds[0]};
- $target_hd = $devname;
+ $target_hd = $devname if !defined($target_hd);
$target_hd_label = Gtk3::Label->new("Target Harddisk: ");
$hbox->pack_start($target_hd_label, 0, 0, 0);
--
2.11.0
More information about the pve-devel
mailing list