Mageia Bugzilla – Attachment 9038 Details for
Bug 20264
Using "clear all" in diskdrake or in installer partitioning on GPT disk results in "failed to del partition #1 on /dev/..." message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Ensure current partition table type is recorded when clearing a disk during automatic install
0002-Record-the-partition-table-type-when-initialising-a-.patch (text/plain), 1.11 KB, created by
Thierry Vignaud
on 2017-03-07 21:51:12 CET
(
hide
)
Description:
Ensure current partition table type is recorded when clearing a disk during automatic install
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2017-03-07 21:51:12 CET
Size:
1.11 KB
patch
obsolete
>From cef0d42db5b87e0f6c20f479a994c6d57bfa9342 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sat, 4 Mar 2017 12:19:55 +0000 >Subject: [PATCH 2/4] Record the partition table type when initialising a > partition table. > >When performing an automatic install that uses the clear or clearall >option, we don't read the current partition table, so the current >partition table type was not getting recorded in $hd->{pt_table_type}. >This information is needed to determine whether a BIOS boot partition >is required. >--- > perl-install/partition_table.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm >index f3a6798..20d6a2b 100644 >--- a/perl-install/partition_table.pm >+++ b/perl-install/partition_table.pm >@@ -274,6 +274,7 @@ sub initialize { > my $current = c::get_disk_type($hd->{file}); > $current = 'dos' if $current eq 'msdos'; > my $type = $o_type || $current || default_type($hd); >+ $hd->{pt_table_type} = $type; > > require "partition_table/$type.pm"; > "partition_table::$type"->initialize($hd); >-- >2.10.2 >
From cef0d42db5b87e0f6c20f479a994c6d57bfa9342 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sat, 4 Mar 2017 12:19:55 +0000 Subject: [PATCH 2/4] Record the partition table type when initialising a partition table. When performing an automatic install that uses the clear or clearall option, we don't read the current partition table, so the current partition table type was not getting recorded in $hd->{pt_table_type}. This information is needed to determine whether a BIOS boot partition is required. --- perl-install/partition_table.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index f3a6798..20d6a2b 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -274,6 +274,7 @@ sub initialize { my $current = c::get_disk_type($hd->{file}); $current = 'dos' if $current eq 'msdos'; my $type = $o_type || $current || default_type($hd); + $hd->{pt_table_type} = $type; require "partition_table/$type.pm"; "partition_table::$type"->initialize($hd); -- 2.10.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20264
:
9028
|
9029
|
9030
|
9031
|
9037
| 9038 |
9039
|
9040
|
9041
|
9042
|
9043
|
9047
|
9054
|
9055
|
9060
|
9082