From 9227a70fd873a194c6e5cb8897dce1e5320cf806 Mon Sep 17 00:00:00 2001 From: Oguz Bektas Date: Fri, 25 Jan 2019 16:14:01 +0100 Subject: [PATCH] only set target_hd if it's not defined already * this avoids weird behaviour with the chosen disk when the user changes the type of filesystem during installation Signed-off-by: Oguz Bektas --- 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.39.5