summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-17 20:07:34 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-17 20:07:34 +0000
commit578a5ebb91de2039009a7274df1f6cead74f1bd8 (patch)
treef99c3ff37e35b9a103f752b06ab943a5b52e76ca /perl-install/any.pm
parentbbc400e4ad9f4c8bb42ca5208a3bfcf09ecfa0fe (diff)
downloaddrakx-backup-do-not-use-578a5ebb91de2039009a7274df1f6cead74f1bd8.tar
drakx-backup-do-not-use-578a5ebb91de2039009a7274df1f6cead74f1bd8.tar.gz
drakx-backup-do-not-use-578a5ebb91de2039009a7274df1f6cead74f1bd8.tar.bz2
drakx-backup-do-not-use-578a5ebb91de2039009a7274df1f6cead74f1bd8.tar.xz
drakx-backup-do-not-use-578a5ebb91de2039009a7274df1f6cead74f1bd8.zip
(setupBootloader__general) display partition labels in list instead of just disk names in "boot device" choice
hard disk names were displayed since 'as suggested in bug #21524, display the info on hard drives in the "boot device" choice' (pixel, 2006-03-09)
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index e9c614ca8..b43c41272 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -423,7 +423,8 @@ sub setupBootloader__general {
foreach (bootloader::allowed_boot_parts($b, $all_hds)) {
my $dev = "/dev/$_->{device}";
push @boot_devices, $dev;
- $boot_devices{$dev} = $_->{info} ? "$dev ($_->{info})" : $dev;
+ my $name = $_->{info} || $_->{device_LABEL};
+ $boot_devices{$dev} = $name ? "$dev ($name)" : $dev;
}
$in->ask_from_({ #messages => N("Bootloader main options"),