From 9c30da3958630618c93926c65e3fcd9dbc4ceddb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 20 Jun 2004 23:32:52 +0000 Subject: show list of partitions --- perl-install/standalone/harddrake2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/harddrake2') 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'); -- cgit v1.2.1