Skip to content

Stop using lsb_release

Alex Iribarren requested to merge lsb_release into master

lsb_release is no longer provided in CS9 (or RHEL9), so we have to do things a little differently.

For upstreamcentostests.sh, I had to change from ID to name. Here are the possible values I've seen so far:

RHEL7:
LSB_DISTRO_ID="RedHatEnterpriseServer"
NAME="Red Hat Enterprise Linux Server"

RHEL8:
LSB_DISTRO_ID="RedHatEnterprise"
NAME="Red Hat Enterprise Linux"

CC7:
LSB_DISTRO_ID="CentOS"
NAME="CentOS Linux"

CS8:
LSB_DISTRO_ID="CentOSStream"
NAME="CentOS Stream"

CS9:
LSB_DISTRO_ID="" #-bash: lsb_release: command not found
NAME="CentOS Stream"

Please double-check that I didn't screw up the conditions.

Merge request reports