Skip to content

Switch to /etc/os-release for detecting versions#1

Draft
gdevenyi wants to merge 1 commit intoloz-hurst:mainfrom
gdevenyi:os-release
Draft

Switch to /etc/os-release for detecting versions#1
gdevenyi wants to merge 1 commit intoloz-hurst:mainfrom
gdevenyi:os-release

Conversation

@gdevenyi
Copy link

This make break downstream use right now

The standard way to detect which system you're running on is to use /etc/os-release
https://www.freedesktop.org/software/systemd/man/latest/os-release.html

It is just an "environment" file, and defines many useful variables. It also has a concept of "variants" using the ID_LIKE variable, something the current implementation "hard codes"

Here's a big collection of release files for reference:
https://github.com/chef/os_release

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.

1 participant