diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-01-27 18:08:22 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-01-27 18:08:22 +0000 |
commit | 9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7 (patch) | |
tree | 9d057f0db2a322b2722c4789ea5b92499451cf09 /perl-install/partition_table.pm | |
parent | 2c28392672c97ba41d2a9af43ecb3c8fb031681b (diff) | |
download | drakx-9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7.tar drakx-9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7.tar.gz drakx-9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7.tar.bz2 drakx-9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7.tar.xz drakx-9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7.zip |
Rewrite gpt support with libparted
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index d33387c3d..d67508384 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -260,7 +260,8 @@ sub read_primary { #- but other sectors (typically for extended partition ones) have to match this type! my @parttype = ( if_(arch() =~ /^ia64/, 'gpt'), - arch() =~ /^sparc/ ? ('sun', 'bsd') : ('lvm', 'dmcrypt', 'dos', 'bsd', 'sun', 'mac'), + # gpt must be tried before dos as it presents a fake compatibility mbr + arch() =~ /^sparc/ ? ('sun', 'bsd') : ('gpt', 'lvm', 'dmcrypt', 'dos', 'bsd', 'sun', 'mac'), ); foreach ('empty', @parttype, 'unknown') { /unknown/ and die "unknown partition table format on disk " . $hd->{file}; |