From 1e4b61c23a81e19e6fd62893b136fd0bde9b55ab Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 20 May 2015 08:35:12 -0400 Subject: display cosmetics when reading back GPT let's diskdrake show the same types as for MBR partitions. to be cleaned once we switch to libparted for everything... --- perl-install/partition_table/gpt.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 161ea621a..332889e1f 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -131,6 +131,12 @@ sub read_one { $_->{pt_type} = 0x12; } $_->{fs_type} = $parted_mapping{$_->{fs_type}} if $parted_mapping{$_->{fs_type}}; + + # compatibility with MBR partitions tables: + $_->{pt_type} = 0x82 if $_->{fs_type} eq 'swap'; + $_->{pt_type} = 0x0b if $_->{fs_type} eq 'vfat'; + $_->{pt_type} = 0x83 if $_->{fs_type} =~ /^ext/; + @pt[$_->{part_number}-1] = $_; } -- cgit v1.2.1