Skip to content
Snippets Groups Projects

Stop using lsb_release

Merged
Alex Iribarrenrequested to merge
lsb_release into master
All threads resolved!

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 9950b44e - No longer need to install redhat-lsb-core

    Compare with previous version

  • Alex Iribarren resolved all threads

    resolved all threads

  • Ben Morrice approved this merge request

    approved this merge request

  • Alex Iribarren mentioned in commit 3b0eb1fa

    mentioned in commit 3b0eb1fa

  • Please register or sign in to reply
    Loading