Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Image CI Image CI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linuxsupportlinuxsupport
  • TestingTesting
  • Image CIImage CI
  • Merge requests
  • !17

Stop using lsb_release

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alex Iribarren requested to merge lsb_release into master Jan 27, 2022
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 2

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: lsb_release