grub2-efi | grub2-efi-modules wrong architecture

Issues related to applications and software problems and general support
Post Reply
invade
Posts: 26
Joined: 2020/02/26 14:26:51

grub2-efi | grub2-efi-modules wrong architecture

Post by invade » 2021/10/04 09:48:35

Hi.

I am in the process of converting a number of AWS EC2 CentOS Linux 8 instances from legacy BIOS to UEFI.

All the systems are 64-bit, eg.

Code: Select all

uname -a
Linux localhost 4.18.0-305.12.1.el8_4.x86_64 #1 SMP Wed Aug 11 01:59:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

grep -o -w 'lm' /proc/cpuinfo
lm
lm

getconf LONG_BIT
64

lshw -class processor
  *-cpu                     
       description: CPU
       product: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
       vendor: Intel Corp.
       physical id: 4
       bus info: cpu@0
       version: 6.85.4
       slot: CPU 0
       size: 2500MHz
       capacity: 3500MHz
       width: 64 bits
       clock: 100MHz
       capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp x86-64 constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
       configuration: cores=1 enabledcores=1 microcode=33581318 threads=2
but when I install the grub2-efi & grub2-efi-modules packages, the following sub packages are used:

Code: Select all

dnf install grub2-efi grub2-efi-modules
Last metadata expiration check: 0:39:35 ago on Mon 04 Oct 2021 09:51:12 BST.
Dependencies resolved.
==============================================================================================================================================================================================================================================================================================================================
 Package                                                                                Architecture                                                           Version                                                                           Repository                                                              Size
==============================================================================================================================================================================================================================================================================================================================
Installing:
 grub2-efi-aa64-modules                                                                 noarch                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 1.0 M
 grub2-efi-ia32                                                                         x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 453 k
Upgrading:
 grub2-common                                                                           noarch                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 890 k
 grub2-pc                                                                               x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                  41 k
 grub2-pc-modules                                                                       noarch                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 914 k
 grub2-tools                                                                            x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 2.0 M
 grub2-tools-extra                                                                      x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 1.1 M
 grub2-tools-minimal                                                                    x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 209 k
Installing dependencies:
 efi-filesystem                                                                         noarch                                                                 3-3.el8                                                                           baseos                                                                 9.0 k
 grub2-tools-efi                                                                        x86_64                                                                 1:2.02-99.el8_4.1                                                                 baseos                                                                 474 k

Transaction Summary
==============================================================================================================================================================================================================================================================================================================================
Install  4 Packages
Upgrade  6 Packages
As far as I understand aa64 is AMD 64-bit and ia32 is Intel 32-bit.

Can anyone explain to me why these sub package versions are being used instead of the x64 versions?

Thanks in advance.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: grub2-efi | grub2-efi-modules wrong architecture

Post by TrevorH » 2021/10/04 10:25:16

As far as I understand aa64 is AMD 64-bit and ia32 is Intel 32-bit.
No: aa64 is ARM, 64 bit.

ia32 is also known as i386.

Looks like grub2-efi-aa64-modules.noarch is in the wrong repo to me. It contains a list of files that would install under /usr/lib/grub/arm64-efi/

I'd suggest raising a bug on bugs.centos.org
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

invade
Posts: 26
Joined: 2020/02/26 14:26:51

Re: grub2-efi | grub2-efi-modules wrong architecture

Post by invade » 2021/10/04 11:06:48

Thanks for the response.

Looks like someone has already raised a similar bug when using the rescue shell from an ISO, although they suggest it works correctly from a normal shell:
https://bugs.centos.org/view.php?id=17198

I'll raise a new bug anyway.


Post Reply