From 0bc75bac4fd3c0599f05f556326dfd84ee39c842 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 28 Mar 2015 01:58:50 +0100 Subject: better fix for too corrupted partition table --- perl-install/partition_table/raw.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm index 11bbbe59c..7b4e7d5cf 100644 --- a/perl-install/partition_table/raw.pm +++ b/perl-install/partition_table/raw.pm @@ -242,7 +242,7 @@ sub read_primary { my ($hd) = @_; my ($pt, $info) = eval { $hd->read_one(0) }; - @$pt or return; + $pt or return; my $primary = partition_table::raw::pt_info_to_primary($hd, $pt, $info); $hd->{primary} = $primary; undef $hd->{extended}; -- cgit v1.2.1