From 623ebaf238e24fb482ab0b4dc423d98ce95acb79 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 24 Sep 2007 07:42:14 +0000 Subject: fix fs::proc_partitions::use_() case: $hd must be cleaned up from existing stuff --- perl-install/partition_table/readonly.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/readonly.pm b/perl-install/partition_table/readonly.pm index c0d483aaf..ec4e5cc49 100644 --- a/perl-install/partition_table/readonly.pm +++ b/perl-install/partition_table/readonly.pm @@ -14,7 +14,8 @@ sub initialize { my ($class, $hd, $parts) = @_; $hd->{readonly} = $hd->{getting_rid_of_readonly_allowed} = 1; - $hd->{primary}{normal} = $parts; + $hd->{primary} = { normal => $parts }; + delete $hd->{extended}; bless $hd, $class; } -- cgit v1.2.1