From 805b728ea430da97db81ba9e556abd273882bf66 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 19 Apr 2012 17:33:27 +0000 Subject: When selecting where ro install bootloader, display mountpoint if available, and size+fs_type if we have nothing (mga#5460) --- perl-install/any.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index 67a8481d5..021a4b004 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -415,7 +415,12 @@ sub setupBootloader__general { foreach (bootloader::allowed_boot_parts($b, $all_hds)) { my $dev = "/dev/$_->{device}"; push @boot_devices, $dev; - my $name = $_->{info} || $_->{device_LABEL}; + my $desc = formatXiB($_->{size}*512); + my $name = $_->{mntpoint} || $_->{info} || $_->{device_LABEL}; + unless ($name) { + $name = formatXiB($_->{size}*512) . " " if $_->{size}; + $name .= $_->{fs_type}; + } $boot_devices{$dev} = $name ? "$dev ($name)" : $dev; } -- cgit v1.2.1