Mageia Bugzilla – Attachment 9029 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 to 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.03 KB, created by
Martin Whitaker
on 2017-03-06 20:02:38 CET
(
hide
)
Description:
Patch to ensure current partition table type is recorded when clearing a disk during automatic install
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-03-06 20:02:38 CET
Size:
1.03 KB
patch
obsolete
>From bb28614227028c8f4f439d708a5e7591f3f23d1c 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. > >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 bb28614227028c8f4f439d708a5e7591f3f23d1c 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. 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 Raw
Actions:
View
Attachments on
bug 20264
:
9028
|
9029
|
9030
|
9031
|
9037
|
9038
|
9039
|
9040
|
9041
|
9042
|
9043
|
9047
|
9054
|
9055
|
9060
|
9082