[How to] Build aarch64 discovery images

This is great.

Patch The Discovery Image Build

It would be great if at one point the script had a parameter for the architecture.

Build A Local ARM64 RPM Repository

In Bootstrapping Foreman RPM packaging I wrote up how to (re)build Foreman’s packages from scratch. As an experiment, I built a copr repository. I already had a chat with @Odilhao about building Foreman for aarch64. We’re working on building Foreman on EL10 and I think it’s a great time to start building on both aarch64 and x86_64.

Patch The Kickstart For ARM64

The whole repo part isn’t needed once we build packages in our regular repos.

But this part:

Remove x86-only packages and add ARM64 GRUB/shim packages:

I wonder if there are virtual packages we can install. For example, if you depend on shim then it will install shim-x64:

# rpm -q --provides shim-x64
bundled(openssl) = 1.0.2j
shim = 15.8-3
shim-signed = 15.8-3
shim-signed-x64 = 15.8-3
shim-x64 = 15.8-3
shim-x64(x86-64) = 15.8-3

I’d imagine that shim-aa64 has the same provides. Perhaps you can provide those patches to the repository?

I only skimmed over the further parts, but that looks logical. Again, would be nice to provide this by default.

1 Like