Skip to content

Commit

Permalink
Drop RHEL 7 and derivatives
Browse files Browse the repository at this point in the history
Scientific Linux is completely gone
  • Loading branch information
MarkEWaite committed Nov 18, 2023
1 parent a960fc6 commit 1242965
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ On Windows computers, the plugin assigns a label based on the Windows feature up
Feature update labels use a two digit year and a two digit month representation.
Common values for Windows feature update are `1809`, `1903`, `2009`, and `2109`.

On Linux computers, the plugin uses the output of the [`lsb_release`](https://linux.die.net/man/1/lsb_release) command.
On Linux computers, the plugin uses the output of the [`lsb_release`](https://linux.die.net/man/1/lsb_release) command if the command is available.

If `lsb_release` is not installed, labels on Linux agents will be guessed based on values in `/etc/os-release`.
Red Hat Linux 9 and its derivatives intentionally do not delivery `lsb_release`.

Red Hat Linux and Scientific Linux agents have another fallback based on `/etc/redhat-release`.
Red Hat Linux agents have another fallback based on `/etc/redhat-release`.

Agents with an older version of SuSE Linux will fallback to `/etc/SuSE-release`. Older versions of this plugin might return "sles" or "SUSE LINUX" as OS name.
This has been unified to "SUSE" as this is the lsb_release ID since 'SLES 12 SP2'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,6 @@ protected PlatformDetails computeLabels(
PREFERRED_LINUX_OS_NAMES.put("rhel", "RedHatEnterprise");
PREFERRED_LINUX_OS_NAMES.put("sles", "SUSE");
PREFERRED_LINUX_OS_NAMES.put("SUSE Linux Enterprise Server", "SUSE");
PREFERRED_LINUX_OS_NAMES.put("Scientific Linux", "Scientific");
PREFERRED_LINUX_OS_NAMES.put("scientific", "Scientific");
PREFERRED_LINUX_OS_NAMES.put("ubuntu", "Ubuntu");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ private static String computeExpectedName(String filename) {
if (filename.contains("ubuntu")) {
return "Ubuntu";
}
if (filename.contains("scientific")) {
return "Scientific";
}
if (filename.contains("sles")) {
return "SUSE";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ private static String computeExpectedName(String filename) {
if (filename.contains("ubuntu")) {
return "Ubuntu";
}
if (filename.contains("scientific")) {
return "Scientific";
}
if (filename.contains("sles")) {
return "SUSE";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ void compareOSVersion() throws Exception {
String version = platformDetailsTask.getReleaseIdentifier("VERSION_ID");
/* Check that the version string returned by getReleaseIdentifier
* is at least at the beginning of one of the detail values. Allow
* Debian 10 and CentOS 7 to report their base version
* in the /etc/os-release file without reporting their incremental
* Debian 10 to report its base version
* in the /etc/os-release file without reporting the incremental
* version.
*
* If Debian unstable is in a freeze, then /etc/os-release
Expand Down

0 comments on commit 1242965

Please sign in to comment.