From cd53e71a8b1fd6fb1eab6c39f56be381abcc7ba2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 10 Jun 2005 07:51:16 +0000 Subject: make it work --- perl-install/fs/proc_partitions.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/fs/proc_partitions.pm b/perl-install/fs/proc_partitions.pm index 3e1e31b32..17484eaa8 100644 --- a/perl-install/fs/proc_partitions.pm +++ b/perl-install/fs/proc_partitions.pm @@ -58,7 +58,7 @@ sub compare { my ($hd) = @_; my @l1 = partition_table::get_normal_parts($hd); - my @l2 = grep { $_->{rootDevice} eq $hd->{device} } read([$hd]); + my @l2 = grep { $_->{rootDevice} eq $hd->{device} } &read([$hd]); #- /proc/partitions includes partition with type "empty" and a non-null size #- so add them for comparison @@ -78,5 +78,7 @@ sub use_ { partition_table::raw::zero_MBR($hd); $hd->{readonly} = 1; $hd->{getting_rid_of_readonly_allowed} = 1; - $hd->{primary} = { normal => [ grep { $_->{rootDevice} eq $hd->{device} } read([$hd]) ] }; + $hd->{primary} = { normal => [ grep { $_->{rootDevice} eq $hd->{device} } &read([$hd]) ] }; } + +1; -- cgit v1.2.1