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

Granulatity of os #76

Open
sideeffect42 opened this issue Apr 28, 2023 · 1 comment
Open

Granulatity of os #76

sideeffect42 opened this issue Apr 28, 2023 · 1 comment
Assignees

Comments

@sideeffect42
Copy link
Member

When updating the base types in #75 I found that the OS lists have gotten quite long in the mean time. And since AlmaLinux and Rocky Linux advertise "bug-for-bug" compatibility with RedHat, I started to wonder how much granularity we want to have in the os explorer.

Do we want this separation or should we treat RedHat more like we treat SuSE and group all Enterprise Linux derivatives under a single os value?

(Or have two explorers, one being specific and the other being more coarse?)

@4nd3r
Copy link
Member

4nd3r commented May 12, 2023

os-release spec has ID_LIKE:

A space-separated list of operating system identifiers in the same syntax as the ID= setting. It should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from.
This field is optional.
Examples: for an operating system with "ID=centos", an assignment of "ID_LIKE="rhel fedora"" would be appropriate. For an operating system with "ID=ubuntu", an assignment of "ID_LIKE=debian" is appropriate.

Same time we already have os_release explorer, but parsing it requires more work. Perhaps add os_like explorer, which initially tries to read ID_LIKE and later we can add more advanced heuristics to "detect" the lineage.

os should stay as is.

@sideeffect42 sideeffect42 self-assigned this May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants