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

Parse /etc/debian_version to get the full Debian version string #1649

Open
eheydrick opened this issue Apr 9, 2021 · 0 comments
Open

Parse /etc/debian_version to get the full Debian version string #1649

eheydrick opened this issue Apr 9, 2021 · 0 comments

Comments

@eheydrick
Copy link

Describe the Enhancement

I'd love if /etc/debian_version was parsed on Debian systems. This is the only way to get the specific minor version, e.g. 10.7. Prior to Ohai 15 platform_version was read from /etc/debian_version on Debian systems but now it's read from /etc/os-release and that only contains the major version, not the minor.

Side-rant: it's unfortunate that Debian doesn't include the full version string in /etc/os-release or /etc/lsb-release like Ubuntu does.

Describe the Need

I think this would be useful for Debian users, especially those who care what minor version they are running. This could be useful for compliance reporting e.g. to prove all systems have been updated to a specific version.

Current Alternative

No good ones. If someone really wanted the minor version they could parse the version of the base-files package as it includes the minor version after the u: e.g. 10.3+deb10u7 = 10.7. Or else write something that reads /etc/debian_version but it would be nice if it was in ohai.

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

No branches or pull requests

1 participant