Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

providers/linux/os.go - Get OS info from Manjaro Linux #183

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented May 31, 2023

Manjaro was not working as expected because the DISTRIB_RELEASE value was never used to get the OS version.

There was no OS distribution family for "arch". So this maps Majaro as part of the "arch" family along with Arch Linux itself and Antergos.

Added an additional fallback to use the ID_LIKE field in os-release to determine the OS distribution family.

I replaced the deprecated io/ioutil with the os package.

Fixes #168

Manjaro was not working as expected because the DISTRIB_RELEASE value
was never used to get the OS version.

There also was no OS distribution family for "arch". So this maps Majaro as part
of the "arch" family along with Arch Linux itself and Antergos.

Added an additional fallback to use the ID_LIKE field in os-release to determine
the OS distribution family.

I replaced the deprecated io/ioutil with the os package.

Fixes elastic#168
@andrewkroh andrewkroh force-pushed the bugfix/linux-os-manjaro branch from 5f5aeab to 2acb1d6 Compare May 31, 2023 22:05
@andrewkroh andrewkroh added bug Something isn't working enhancement New feature or request labels May 31, 2023
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 31, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-06-01T02:12:54.368+0000

  • Duration: 10 min 55 sec

Test stats 🧪

Test Results
Failed 0
Passed 164
Skipped 2
Total 166

@andrewkroh andrewkroh merged commit 9ea2eba into elastic:main Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot get OS version on Manjaro 22.1.0 Talos
2 participants