uname vs /etc/os-release

Bernd Petrovitsch bernd at petrovitsch.priv.at
Thu Nov 15 00:10:27 UTC 2018


On 14/11/2018 19:26, James Hanley wrote:
> uname doesn't (appear to) do it now, but should it extract information
> from /etc/os-release for rendering?

Why should it? What are you missing? Please bring something serious and
not just a wish/claim/..... Thank you.

In fact:
- /etc/os-release is just a text file in the filesystem which seems to
  contains some information about the installed distribution (and I
  don't if it exists outside of the Linux world).
- The `uname` binary (as in `man 1 uname`) uses the uname() sys-call (as
  in `man 2 uname`) - `strace` it and see for yourself (and why didn't
  you do this before?).

MfG,
	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at


More information about the busybox mailing list