Mageia Bugzilla – Attachment 8130 Details for
Bug 18666
[GPT] It enters emergency mode after a reboot. Netinstall of June 8th
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
prevent using the last 33 sectors
18666.patch (text/plain), 468 bytes, created by
Thierry Vignaud
on 2016-07-05 15:50:48 CEST
(
hide
)
Description:
prevent using the last 33 sectors
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2016-07-05 15:50:48 CEST
Size:
468 bytes
patch
obsolete
>diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm >index 30a1297..5ef358e 100644 >--- a/perl-install/partition_table/gpt.pm >+++ b/perl-install/partition_table/gpt.pm >@@ -14,4 +14,10 @@ my $nb_primary = 128; > >+sub last_usable_sector { >+ my ($hd) = @_; >+ #- do not use totalsectors because backup GPT is at end >+ $hd->{totalsectors} - 33; >+} >+ > my %parted_mapping = ( > 'linux-swap(v1)' => 'swap', > 'ntfs' => 'ntfs-3g',
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 30a1297..5ef358e 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -14,4 +14,10 @@ my $nb_primary = 128; +sub last_usable_sector { + my ($hd) = @_; + #- do not use totalsectors because backup GPT is at end + $hd->{totalsectors} - 33; +} + my %parted_mapping = ( 'linux-swap(v1)' => 'swap', 'ntfs' => 'ntfs-3g',
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18666
:
7954
|
7965
|
8002
|
8008
| 8130