Bug 24282

Summary: Create boot/bootx64.efi in EFS to surely boot in UEFI mode
Product: Mageia Reporter: papoteur <yvesbrungard>
Component: InstallerAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: choucroot, mageia, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakx-installer-stage2 CVE:
Status comment:

Description papoteur 2019-02-01 19:23:48 CET
Description of problem:
On some hardware and in Virtualbox, after installation, the system is not bootable.
A solution is to have grubx64.efi moved as boot/bootx64.efi in the EFS, which is more surely recognized and renders the system bootable.

It seems that Ubuntu does it at installation.

Version-Release number of selected component (if applicable): Mageia 6 and cauldron

How reproducible: prepare an new image with Virtualbox, choose Configuration/System, tick "Active EFI". Install Mageia.
grubx64.efi is installed in /boot/EFI/EFI/mageia/grubx64.efi

Reboot: we get a console of EFI.
Enter fs0:\efi\mageia\grubx64.efi to boot

Copy grubx64.efi in /boot/EFI/EFI/boot/bootx64.efi

The next reboot is OK.
papoteur 2019-02-01 19:24:07 CET

Summary: Create boot/bootx64.efi in EFS to surely boot un UEFI mode => Create boot/bootx64.efi in EFS to surely boot in UEFI mode

Marja Van Waes 2019-02-03 09:48:31 CET

CC: (none) => marja11
Source RPM: (none) => drakx-installer-stage2
Assignee: bugsquad => mageiatools

Comment 1 Martin Whitaker 2019-02-03 11:01:06 CET
I don't think we should do this by default - that is officially the recovery bootloader, so normally should be left alone.

If you select rEFInd instead of GRUB2 as your bootloader, the option to install it in that location already exists.

CC: (none) => mageia

Comment 2 papoteur 2019-02-03 12:21:33 CET
(In reply to Martin Whitaker from comment #1)
> I don't think we should do this by default - that is officially the recovery
> bootloader, so normally should be left alone.
It seems that very often, the system installed doesn't recognize the NVRAM entry just written, even if it's not officially recommended. This is a way to be sure that newly installed has no problem with it. And that we don't loose a user who will have success installing Ubuntu because Ubuntu don't follow the official way.
> 
> If you select rEFInd instead of GRUB2 as your bootloader, the option to
> install it in that location already exists.

Where can select refind with Mageia installer?
Comment 3 Martin Whitaker 2019-02-03 12:32:57 CET
(In reply to papoteur from comment #2)
> Where can select refind with Mageia installer?

At the "Bootloader main options" screen, in the drop-down list for "Bootloader to use". This is new in Mageia 7.
Comment 4 Alain Choucroot 2019-06-15 15:10:21 CEST
Hello, I just faced this issue while installing Mageia 6.1 on a MSI Cubi N 8GL (sold without OS). Thanks papoteur could help on the french forum, otherwise I wouldn't have been able to solve it. Good news that in mga7 the problem will be easier to handle with rEFInd

CC: (none) => choucroot

Comment 5 papoteur 2019-06-24 09:00:27 CEST
(In reply to Martin Whitaker from comment #3)
> (In reply to papoteur from comment #2)
> > Where can select refind with Mageia installer?
> 
> At the "Bootloader main options" screen, in the drop-down list for
> "Bootloader to use". This is new in Mageia 7.

I didn't see it in Live installer. Is it specific to Classical installer?
Comment 6 Martin Whitaker 2019-06-24 09:45:52 CEST
(In reply to papoteur from comment #5)
> I didn't see it in Live installer. Is it specific to Classical installer?

No, it's available in both (and in drakboot). But only if you boot in EFI mode, and only if your EFI type (32-bit or 64-bit) matches the OS type. If you are installing a 64-bit system on a machine with 32-bit EFI, the only option is GRUB2.
Comment 7 papoteur 2019-06-24 09:59:31 CEST
OK,
Installation was in Legacy mode from a Virtualbox. Thus,this wasn't proposed.
Thanks
Comment 8 Martin Whitaker 2020-06-27 20:24:03 CEST
Both the installers (classic and live) and drakboot now provide the option to install the GRUB2 bootloader in \EFI\BOOT. This is included on the 8-alpha1 ISOs.

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