Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 35 detected as OracleLinux #275

Closed
juhp opened this issue Sep 18, 2021 · 2 comments · Fixed by #281 or #317
Closed

Fedora 35 detected as OracleLinux #275

juhp opened this issue Sep 18, 2021 · 2 comments · Fixed by #281 or #317

Comments

@juhp
Copy link

juhp commented Sep 18, 2021

I am trying the os_info cli on Fedora Linux 35 (which is still in development: due to be released in October).
I ran cargo install os_info_cli on Fedora 35 x86_64 and then when I run it:

$ cargo install os_info_cli
    Updating crates.io index
  Downloaded os_info_cli v1.0.2
  Downloaded 1 crate (7.1 KB) in 2.67s
  Installing os_info_cli v1.0.2
  :
  :
$ os_info 
OS information:
Type: OracleLinux
Version: 35.0.0
Bitness: 64-bit

Also here is the os-release contents:

$ head /etc/os-release 
NAME="Fedora Linux"
VERSION="35 (Workstation Edition Prerelease)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Workstation Edition Prerelease)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"

and rust version:

$ rustc --version
rustc 1.54.0 (Fedora 1.54.0-1.fc35)
@stanislav-tkach
Copy link
Owner

stanislav-tkach commented Nov 9, 2021

Sorry for the terribly late reply! I have tried to fix (#281) this issue. Could you please check the version from the master branch? I'm going to release a new version soon if the issue is fixed.

@bsherman
Copy link
Contributor

bsherman commented Feb 3, 2022

I'm not the OP, but I recently installed via cargo install os_info which installed v1.0.2.

I saw the same problem, so I came to see if there was a bug filed.

I also cloned the master branch which seems to still be 1.0.2... and it has the same problem, so I'd say this is not fixed.

Upon closer inspection, it seems your previous fix did work but only if the system had the lsb_release binary, which is not installed by default on Fedora.

So, this is falling back to the file_release branch and missing your fix in the lsb_release branch.

I've fixed in a submitted PR, #293 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants