Bug 27337

Summary: Enable arm-efi in grub2
Product: Mageia Reporter: Jybz <j.biernacki+mga>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: grub2-2.04.0-24.mga8.src.rpm CVE:
Status comment:

Description Jybz 2020-09-27 22:20:45 CEST
Hello !

Can you please enable arm-efi in grub2 ?

A choice was made (who ? When ? Why ?) to enable arm-uboot, arm64-efi, but not arm-efi.

It is easy to enable it with few changes :
> http://svnweb.mageia.org/packages/updates/7/grub2/current/SPECS/grub2.spec?view=markup
changing L13 :
> %global efi_arch arm-efi

commenting L133, L150, L220, L227, L267, L283, L287, L291, L372, L377, L437, L444, L459, L464 :
> #%ifnarch %arm
> #%endif

After that, it would be able to use grub2 as bootloader for arm devices (like Rpi2, bananapro, odroid...)

I reuse the spec of Mageia, comment the lines mentioned above and modify L13, it compiles on armv7hl and the result is exactly what expected.

Jybz
Comment 1 Aurelien Oudelet 2020-09-27 23:54:53 CEST
Hi, thanks taking time to report this.
Setting this against Cauldron first,
Assigning to all packagers, as there is no registered maintainer for grub2.
CC'd recent committers.
(Packagers: Please change status to "Assigned" when you are working on this.)

Version: 7 => Cauldron
Assignee: bugsquad => pkg-bugs
Source RPM: grub2 => grub2-2.04.0-24.mga8.src.rpm
CC: (none) => thierry.vignaud

Comment 2 Thierry Vignaud 2020-09-28 09:46:54 CEST
Err, we already have grub2-efi for armv7hl in Cauldron…

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