Skip to content

Fall back to /usr/lib/os-release when /etc/os-release is absent #545

Closed

Description

@rominf

os-release(5) says to read /etc/os-release and, if it does not exist, /usr/lib/os-release; every reader in rocm-cli reads only /etc/os-release.
On a system that ships only /usr/lib/os-release, the distro reads as unknown, so rocm examine reports none and rocm install driver plans nothing.
Read through one helper that tries /etc/os-release then /usr/lib/os-release, and use it at all six places that read the file.

Activity

  1. added a commit that references this issue on Oct 14, 2026
    f9d3ede
  2. added a commit that references this issue on Oct 16, 2026
    05d7620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions