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

Use the VERSION_ID variable by default in /etc/os-release #313

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Mar 11, 2020

This variable is the machine readable version ID for tools like our install script. The VERSION variable often includes friendly values like this: "7.5 (Maipo)".

We're already doing this for RHEL platforms, but currently we pull in VERSION on modern opensuse platforms and others, which breaks installs via install.sh.

Lack VERSION (or version without strings in it), but have VERSION_ID:

Have VERSION, but not VERSION_ID:

Have neither:

Signed-off-by: Tim Smith tsmith@chef.io

This variable is the machine readable version ID for tools like our install script. The VERSION variable often includes friendly values like this: "7.5 (Maipo)".

We're already doing this for RHEL platforms, but currently we pull in VERSION on modern opensuse platforms and others, which breaks installs via install.sh.

Lack VERSION (or version without strings in it), but have VERSION_ID:
alpine - https://github.com/chef/os_release/blob/master/alpine_3_8
clearos - https://github.com/chef/os_release/blob/master/clearos_7
cumulus - https://github.com/chef/os_release/blob/master/cumulus_3_7
debian - https://github.com/chef/os_release/blob/master/debian_7
elementary - https://github.com/chef/os_release/blob/master/elementary_5
fedora - https://github.com/chef/os_release/blob/master/fedora_28
linuxmint - https://github.com/chef/os_release/blob/master/linuxmint_19
nixos - https://github.com/chef/os_release/blob/master/nixos
raspian - https://github.com/chef/os_release/blob/master/raspbian_10
redhat - https://github.com/chef/os_release/blob/master/redhat_7
scientific - https://github.com/chef/os_release/blob/master/scientific_7
sled 12 - https://github.com/chef/os_release/blob/master/sled_12_3
sles 12 - https://github.com/chef/os_release/blob/master/sles_12_3
sles-sap 12 - https://github.com/chef/os_release/blob/master/sles_sap_12_1
ubuntu - https://github.com/chef/os_release/blob/master/ubuntu_1404
XBian - https://github.com/chef/os_release/blob/master/xbian

Have VERSION, but not VERSION_ID:
Antergos - https://github.com/chef/os_release/blob/master/antergos
xenserver - https://github.com/chef/os_release/blob/master/xenserver_7_6

Have neither:
arch - https://github.com/chef/os_release/blob/master/arch
archarm - https://github.com/chef/os_release/blob/master/archarm
gentoo - https://github.com/chef/os_release/blob/master/gentoo
manjaro - https://github.com/chef/os_release/blob/master/manjaro
nexus7 - https://github.com/chef/os_release/blob/master/nexus_7

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners March 11, 2020 22:55
@tas50 tas50 added the Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number. label Mar 12, 2020
@tas50 tas50 merged commit 4416b76 into master Mar 12, 2020
@chef-expeditor chef-expeditor bot deleted the etc_os_release_version_id branch March 12, 2020 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants