Skip to content

Conversation

@intxgo
Copy link
Contributor

@intxgo intxgo commented Feb 13, 2025

Improve native architecture detection on Linux.

NativeArchitecture() was empty on RedHat with no /proc/sys/kernel/arch and /proc/version

Linux version 5.14.0-547.el9.x86_64 ([mockbuild@x86-05.stream.rdu2.redhat.com](mailto:mockbuild@x86-05.stream.rdu2.redhat.com)) (gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-2), GNU ld version 2.35.2-59.el9) #1 SMP PREEMPT_DYNAMIC Mon Dec 30 20:10:38 UTC 2024

The fallback of reading /proc/version certainly should take into account both synonyms for AMD64 and ARM64 architectures.

@intxgo
Copy link
Contributor Author

intxgo commented Feb 13, 2025

@jesse-sant

@intxgo intxgo marked this pull request as ready for review February 14, 2025 09:56
@intxgo intxgo merged commit 7ac4eba into elastic:main Feb 14, 2025
18 checks passed
@intxgo intxgo deleted the fix-native-architecture-detection-linux branch February 14, 2025 12:38
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.

2 participants