From 65ace13dc9c5de248e0d75d6e2076f640793528e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 18 Sep 2007 12:47:50 +0000 Subject: create partition_table::readonly and use it --- perl-install/fs/proc_partitions.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'perl-install/fs/proc_partitions.pm') diff --git a/perl-install/fs/proc_partitions.pm b/perl-install/fs/proc_partitions.pm index 84d686c45..731797a19 100644 --- a/perl-install/fs/proc_partitions.pm +++ b/perl-install/fs/proc_partitions.pm @@ -63,11 +63,9 @@ sub compare { sub use_ { my ($hd) = @_; - - partition_table::raw::clear($hd); - $hd->{readonly} = 1; - $hd->{getting_rid_of_readonly_allowed} = 1; - $hd->{primary} = { normal => [ grep { $_->{rootDevice} eq $hd->{device} } &read([$hd]) ] }; + + require partition_table::readonly; + partition_table::readonly->initialize($hd, [ grep { $_->{rootDevice} eq $hd->{device} } &read([$hd]) ]); } 1; -- cgit v1.2.1