]> git.proxmox.com Git - pve-installer.git/commitdiff
only set target_hd if it's not defined already
authorOguz Bektas <o.bektas@proxmox.com>
Fri, 25 Jan 2019 15:14:01 +0000 (16:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Jan 2019 15:21:06 +0000 (16:21 +0100)
* 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@proxmox.com>
proxinstall

index 916ce5161a21522b76cb7e27ff859e57ba73bcb8..96e4ffdf0d156403c92f07bca0c2dce58d9cf4cf 100755 (executable)
@@ -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);