Skip to content

Cannot detect openSUSE 15.3 #7

@pawel-kedzior-sw

Description

@pawel-kedzior-sw

The library fails to properly recognize openSUSE 15.3

osutil.GetDisplay()
expected: openSUSE
actual: Linux

distro := osutil.GetDist()

expected: distro.Display to be openSUSE
actual: distro.Display is empty

expected: distro.Codename to be Leap
actual: distro.Codename is empty

Notes:
distro.Release is correct, 15.3

lsb_release - command is not available

cat /etc/os-release returns

NAME="openSUSE Leap"
VERSION="15.3"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.3"
PRETTY_NAME="openSUSE Leap 15.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.3"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

There is no file /etc/SuSE-release

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions