Mageia Bugzilla – Attachment 9178 Details for
Bug 20621
Failure to create an ESP when the "Use entire disk" partitioning solution is selected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to force partition suggestions to be updated after disk is wiped
0001-Force-reinitialisation-of-partition-suggestions-afte.patch (text/plain), 1.17 KB, created by
Martin Whitaker
on 2017-04-02 22:54:22 CEST
(
hide
)
Description:
Patch to force partition suggestions to be updated after disk is wiped
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-04-02 22:54:22 CEST
Size:
1.17 KB
patch
obsolete
>From 78dd21e32e39f9ab7dc276627f6b4ad314e31cb7 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sun, 2 Apr 2017 19:34:39 +0100 >Subject: [PATCH] Force reinitialisation of partition suggestions after wiping > disk. > >When the "Use entire disk" partitioning solution is chosen in a UEFI >install, any existing ESP will be deleted, so we must force the >partition suggestions to be updated to ensure we create a new one. > >(this matches what is done in the diskdrake auto-allocate routine) > >diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm >index eef836c..8a15ec5 100644 >--- a/perl-install/fs/partitioning_wizard.pm >+++ b/perl-install/fs/partitioning_wizard.pm >@@ -274,7 +274,7 @@ filesystem checks will be run on your next boot into Microsoft Windows®")) if $ > fsedit::partition_table_clear_and_initialize($all_hds->{lvms}, $hd, $in); > # FIXME: reread all_hds: > # re add suggestions if needed (as we might just have erased eg Boot BIOS partition): >- fsedit::init_mntpnt_suggestions($all_hds); >+ fsedit::init_mntpnt_suggestions($all_hds, 1); > fsedit::auto_allocate($all_hds, $partitions, $hd); > 1; > } ]; >-- >2.10.2 >
From 78dd21e32e39f9ab7dc276627f6b4ad314e31cb7 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sun, 2 Apr 2017 19:34:39 +0100 Subject: [PATCH] Force reinitialisation of partition suggestions after wiping disk. When the "Use entire disk" partitioning solution is chosen in a UEFI install, any existing ESP will be deleted, so we must force the partition suggestions to be updated to ensure we create a new one. (this matches what is done in the diskdrake auto-allocate routine) diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index eef836c..8a15ec5 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -274,7 +274,7 @@ filesystem checks will be run on your next boot into Microsoft Windows®")) if $ fsedit::partition_table_clear_and_initialize($all_hds->{lvms}, $hd, $in); # FIXME: reread all_hds: # re add suggestions if needed (as we might just have erased eg Boot BIOS partition): - fsedit::init_mntpnt_suggestions($all_hds); + fsedit::init_mntpnt_suggestions($all_hds, 1); fsedit::auto_allocate($all_hds, $partitions, $hd); 1; } ]; -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20621
: 9178