Skip to content

Conversation

@wszqkzqk
Copy link
Contributor

@wszqkzqk wszqkzqk commented Mar 31, 2025

PR Description:

Set GRUB target to f'{platform.machine()}-efi' instead of hard-coded x86_64-efi in UEFI mode.

Arch Linux devtools' checkpkg already suggests to use $CARCH instead of hard-coded x86_64 in PKGBUILD, so we may also follow it. This PR may be friendly to Arch Linux Ports (see the RFC) and has no negative impact on existing x86_64 architecture.

According to the Arch Linux ports RFC:

When devices of a port do not (or cannot) support a boot flow following the Boot Loader Specification, documentation and (if applicable) packages for the boot process must be provided.

So I only added the multi-architecture compatibility in UEFI mode. Architectures without UEFI support should be handled additionally according to the requirements of RFC.

/cc @felixonmars

Tests and Checks

  • I have tested the code!

@wszqkzqk wszqkzqk requested a review from Torxed as a code owner March 31, 2025 08:01
…b-install

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
@wszqkzqk wszqkzqk force-pushed the grub-install-arch branch from ecaaddf to e175b0b Compare April 1, 2025 00:20
@wszqkzqk
Copy link
Contributor Author

wszqkzqk commented Apr 1, 2025

Typo fixed.

@svartkanin svartkanin merged commit 5af2d2b into archlinux:master Apr 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants