Bug 15640

Summary: drakboot regression (not updating grub2 bootloader)
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: thierry.vignaud, wilcal.int
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: drakboot CVE:
Status comment:

Description Barry Jackson 2015-04-07 01:07:52 CEST
Description of problem:
In Mageia 4 if the bootloader is switched from grub legacy to grub2 using drakboot this works fine and the change is seamless.

If the change is made AFTER upgrade to Mageia 5 it just fails silently, and the MBR still has legacy grub.

Running grub2-install /dev/sda in the upgraded system writes a new MBR without problem and on the next boot grub2 works.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create Mga4 in VM with legacy grub - fully update it
2. Take snapshot
3. Use drakboot to switch bootloader to grub2 and test it
4. Restore snapshot and upgrade to Mageia 5
5. Reboot and take snapshot
6. use drakboot to switch bootloader to grub2. No errors, but bootloader is not installed, reboot is still using legacy.


Reproducible: 

Steps to Reproduce:
Comment 1 Thierry Vignaud 2015-04-07 10:47:11 CEST
Please look for drakbtoot actions using "journalctl SYSLOG_FACILITY=17" (or /var/log/explanations if you have rsyslog installed)

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 2 Thierry Vignaud 2015-04-07 11:02:15 CEST
Humm found & fixed in git :-(

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 3 Mageia Robot 2015-04-07 12:19:55 CEST
commit a8702050b4b64fec08fba0a7e9495ad9e42561a3
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Apr 7 04:58:21 2015 -0400

    fix installing grub2 on MBR (mga#15640)
    
    regression introduced in:
    commit b0039ed72e22303c213539ed68315fd90c3c73f1
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=a8702050b4b64fec08fba0a7e9495ad9e42561a3
Comment 4 Thierry Vignaud 2015-04-08 08:56:01 CEST
*** Bug 15645 has been marked as a duplicate of this bug. ***

CC: (none) => wilcal.int

Thierry Vignaud 2015-04-08 08:56:56 CEST

Summary: drakboot regression after upgrade from Mga4 => drakboot regression (not updating grub2 bootloader)

Comment 5 Mageia Robot 2015-04-27 17:58:53 CEST
commit 7189033dc6e885f0aa29a4befadc824b3e82e8b4
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Apr 7 04:58:21 2015 -0400

    fix installing grub2 on MBR (mga#15640)
    
    regression introduced in:
    commit b0039ed72e22303c213539ed68315fd90c3c73f1
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=7189033dc6e885f0aa29a4befadc824b3e82e8b4