diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-03-28 02:42:02 +0100 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-03-30 15:05:42 +0259 |
commit | 0adf9412b786342346a9df9fd262765d6b97d38f (patch) | |
tree | cee36654909e2452e8d07678ee333e15ae4e25ec /perl-install/partition_table/gpt.pm | |
parent | 6da0111e315928dd9d42494ea3c0d5c208a1f411 (diff) | |
download | drakx-0adf9412b786342346a9df9fd262765d6b97d38f.tar drakx-0adf9412b786342346a9df9fd262765d6b97d38f.tar.gz drakx-0adf9412b786342346a9df9fd262765d6b97d38f.tar.bz2 drakx-0adf9412b786342346a9df9fd262765d6b97d38f.tar.xz drakx-0adf9412b786342346a9df9fd262765d6b97d38f.zip |
try to detect recovery partitions on GPT
Diffstat (limited to 'perl-install/partition_table/gpt.pm')
-rw-r--r-- | perl-install/partition_table/gpt.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 11cbe414d..3f0bc3f13 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -117,6 +117,8 @@ sub read_one { $_->{pt_type} = 0x8e; } elsif (c::get_partition_flag($hd->{file}, $_->{part_number}, 'RAID')) { $_->{pt_type} = 0xfd; + } elsif (c::get_partition_flag($hd->{file}, $_->{part_number}, 'recovery')) { + $_->{pt_type} = 0x12; } $_->{fs_type} = 'swap' if $_->{fs_type} eq 'linux-swap(v1)'; $_->{fs_type} = 'ntfs-3g' if $_->{fs_type} eq 'ntfs'; |