| Summary: | On Mga5 to Mga6 upgrade a bios_boot partition in being required if disk is gpt. | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Charles Edwards <cae> |
| Component: | Installer | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | release_blocker | CC: | mageia, mageiatools, marja11, thierry.vignaud, zen25000 |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | Patch pushed, to be tested in drakx 17.77 or later | ||
| Attachments: |
report from Mga6 upgrade requiring bios_boot
Proposed fix |
||
|
Description
Charles Edwards
2017-02-23 14:58:29 CET
please compress and then attach /root/report.bug from the time of the upgrade Keywords:
(none) =>
NEEDINFO Created attachment 8980 [details]
report from Mga6 upgrade requiring bios_boot
Martin, would you patches handle that case too? CC:
(none) =>
mageia, thierry.vignaud (In reply to Thierry Vignaud from comment #3) > Martin, would you patches handle that case too? No, because there is only a GPT disk in this case. For new installs we only support grub2, so it's right to insist on a BIOS boot partition. For upgrades, we still support legacy grub, so it isn't needed. I think the fix for this is to skip the is_boot_bios_part_needed() check when $o->{isUpgrade} is set.
Marja Van Waes
2017-02-24 20:06:31 CET
Assignee:
bugsquad =>
mageiatools
Marja Van Waes
2017-02-24 20:06:41 CET
Keywords:
NEEDINFO =>
(none) Created attachment 8988 [details]
Proposed fix
e.g. like this. Tested in Vbox. The only issue I saw was that if you try to modify the bootloader at the end of the upgrade, you are no longer given the option to install it in the MBR
Comment on attachment 8988 [details]
Proposed fix
It might be simpler to not add a new parameter and just check for $::o->{isUpgrade}
Thierry Vignaud
2017-02-26 09:21:14 CET
Attachment 8988 is patch:
0 =>
1 (In reply to Thierry Vignaud from comment #6) > Comment on attachment 8988 [details] > Proposed fix > > It might be simpler to not add a new parameter and just check for > $::o->{isUpgrade} Long ago when I was taught programming, global variables were frowned upon ;-) But feel free to modify my patch. Changing this to a release blocker because it affects the installer and any fix needs to be on the released ISOs. Keywords:
(none) =>
PATCH Does this patch need some work? If not, could it be committed, please? :) This bug is a release blocker. It looks sane @Martin, go ahead and commit :)
Rémi Verschelde
2017-04-04 10:58:57 CEST
Status comment:
(none) =>
Approved patch, needs to be pushed to git and packaged commit 6753abe33da73245f22908724f671334de56cd09
Author: Martin Whitaker <mageia@...>
Date: Sat Feb 25 21:01:34 2017 +0000
Don't require a BIOS boot partition when performing an upgrade (mga#20338)
If we are upgrading a system on a GPT disk and it doesn't currently
have a BIOS boot partition, the old system must be using a legacy
bootloader (e.g. grub). We support the continued use of legacy
bootloaders in an upgrade, so there is no need to insist on a BIOS
boot partition in this case.
---
Commit Link:
http://gitweb.mageia.org/software/drakx/commit/?id=6753abe33da73245f22908724f671334de56cd09
Rémi Verschelde
2017-04-04 20:08:00 CEST
Status comment:
Approved patch, needs to be pushed to git and packaged =>
Patch pushed, to be tested in drakx 17.77 or later Closing Status:
NEW =>
RESOLVED |