eminence / eminence/procfs

KernelVersion::current reads /proc/sys/kernel/osrelease, patch version is incorrect in ubuntu

Open
#279 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
445
Forks
134
PR merge metrics
No merged PRs in 30d

Description

```
tamird@pc:~/src$ cat /proc/sys/kernel/osrelease
6.2.0-24-generic
tamird@pc:~/src$ cat /proc/version_signature
Ubuntu 6.2.0-24.24-generic 6.2.12
```

Per [this article](https://wiki.ubuntu.com/Kernel/FAQ/GeneralVersionRunning) the upstream kernel version is the rightmost field (so 6.2.12 in my case) while `/proc/sys/kernel/osrelease` reports `6.2.0`.

There are possibly some gotchas with Debian as well -- I'm not sure if there's a universal way to get this information right for all distros.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.