Mageia Bugzilla – Attachment 6631 Details for
Bug 16029
The classical installer doesn't detect the ESP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
set pt_type according to fs_type before flag cases
16029.diff (text/plain), 1.15 KB, created by
Thierry Vignaud
on 2015-05-24 12:11:47 CEST
(
hide
)
Description:
set pt_type according to fs_type before flag cases
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-05-24 12:11:47 CEST
Size:
1.15 KB
patch
obsolete
>diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm >index 332889e..d07b634 100644 >--- a/perl-install/partition_table/gpt.pm >+++ b/perl-install/partition_table/gpt.pm >@@ -120,6 +120,11 @@ sub read_one { > my @pt; > # FIXME: just use '@pt = map { ... } c::...' if part_numbers are always linear: > foreach (c::get_disk_partitions($hd->{file})) { >+ # 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/; >+ > # fix detecting ESP (special case are they're detected through pt_type): > if ($_->{flag} eq 'ESP') { > $_->{pt_type} = 0xef; >@@ -132,11 +137,6 @@ sub read_one { > } > $_->{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] = $_; > } >
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 332889e..d07b634 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -120,6 +120,11 @@ sub read_one { my @pt; # FIXME: just use '@pt = map { ... } c::...' if part_numbers are always linear: foreach (c::get_disk_partitions($hd->{file})) { + # 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/; + # fix detecting ESP (special case are they're detected through pt_type): if ($_->{flag} eq 'ESP') { $_->{pt_type} = 0xef; @@ -132,11 +137,6 @@ sub read_one { } $_->{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] = $_; }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16029
:
6628
| 6631