From 03cdcb8c4ebeebfc89dafd8b9220d469f0be21ae Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 6 Jul 2002 09:50:45 +0000 Subject: cleanup --- perl-install/partition_table.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/partition_table.pm') diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index a75c68cfa..c0446ee66 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -453,10 +453,10 @@ sub read_one($$) { if (!$sector) { my @parttype = ( if_(arch() =~ /^ia64/, 'gpt'), - arch() =~ /^sparc/ ? ('sun', 'bsd', 'unknown') : ('dos', 'bsd', 'sun', 'mac', 'unknown'), + arch() =~ /^sparc/ ? ('sun', 'bsd') : ('dos', 'bsd', 'sun', 'mac'), ); - foreach ('empty', @parttype) { - /unknown/ and die "unknown partition table format"; + foreach ('empty', @parttype, 'unknown') { + /unknown/ and die "unknown partition table format on disk " . $hd->{file}; eval { require("partition_table_$_.pm"); bless $hd, "partition_table_$_"; -- cgit v1.2.1