-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert dot-less CentOS versions to X.999
CentOS Stream doesn't do dot releases, so it always has the major version in the version_id field of os-release. Our code, in multiple places, expects versions in the form X.Y and doesn't cope well when given only X. The value "999" is taken arbitrarily, with the sole assumption that it will be always higher than any RHEL release, as CentOS Stream is ahead of RHEL. See https://issues.redhat.com/browse/CS-1757 for further discussion and alternative numbering options.
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
repos/system_upgrade/common/actors/ipuworkflowconfig/tests/files/os-release-stream8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
NAME="CentOS Stream" | ||
VERSION="8" | ||
ID="centos" | ||
ID_LIKE="rhel fedora" | ||
VERSION_ID="8" | ||
PLATFORM_ID="platform:el8" | ||
PRETTY_NAME="CentOS Stream 8" | ||
ANSI_COLOR="0;31" | ||
CPE_NAME="cpe:/o:centos:centos:8" | ||
HOME_URL="https://centos.org/" | ||
BUG_REPORT_URL="https://bugzilla.redhat.com/" | ||
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8" | ||
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters