summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:32:52 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:32:52 +0000
commit9c30da3958630618c93926c65e3fcd9dbc4ceddb (patch)
treed709df7eb461f28c8dd24a6d4945612990c1dabd
parent4b3f603fb718d45e23f0fc77d6e2df40c2af61bd (diff)
downloaddrakx-9c30da3958630618c93926c65e3fcd9dbc4ceddb.tar
drakx-9c30da3958630618c93926c65e3fcd9dbc4ceddb.tar.gz
drakx-9c30da3958630618c93926c65e3fcd9dbc4ceddb.tar.bz2
drakx-9c30da3958630618c93926c65e3fcd9dbc4ceddb.tar.xz
drakx-9c30da3958630618c93926c65e3fcd9dbc4ceddb.zip
show list of partitions
-rwxr-xr-xperl-install/standalone/harddrake27
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2
index 55fb0af93..b6b272c1b 100755
--- a/perl-install/standalone/harddrake2
+++ b/perl-install/standalone/harddrake2
@@ -402,7 +402,12 @@ foreach (@classes) {
$hd->{geometry} = join('/', map { $info->{geom}{$_} } qw(cylinders heads sectors)) . " (CHS)";
$hd->{primary_partitions} = @{$info->{primary}{normal}};
$hd->{extended_partitions} = @{$info->{extended}};
- delete $hd->{extended_partitions} if $hd->{extended_partitions} eq '0';
+ $hd->{primary_partitions} .= " (" . join(', ', map { $_->{device} }@{$info->{primary}{normal}}) . ")" if $hd->{primary_partitions};
+ if ($hd->{extended_partitions}) {
+ $hd->{extended_partitions} .= " (" . join(', ', map { $_->{normal}{device} }@{$info->{extended}}) . ")";
+ } else {
+ delete $hd->{extended_partitions} if $hd->{extended_partitions} eq '0';
+ }
}
$_->{EMULATEWHEEL} = bool2yesno($_->{EMULATEWHEEL}) if $Ident eq "MOUSE";
rename_field($_, 'usb_bus', 'bus');