Add TARGET_MACHINE to /etc/os-release

Alexander A. Filippov a.filippov at yadro.com
Thu Nov 29 19:02:32 AEDT 2018


Hi all,

On Wed, Nov 28, 2018 at 01:36:37PM -0500, Brad Bishop wrote:
> 
> Just FYI - MACHINE winds up in uname -a:
> 
> root at palmetto:/var/lib/systemd# uname -a
> Linux palmetto 4.18.12-b29e57c654b8d7cfa15d632fbc0ebfe0897b8203 #1 Thu Nov 15 21:52:09 UTC 2018 armv5tejl GNU/Linux
> 
> Perhaps this meets your need without additional code?
> 
> -brad

Brad, it is the hostname. For example in my case it looks like this:

root at malevich:~# uname -a
Linux malevich.dev.yadro.com 4.18.20-d608acfd4ac3fe17f3081bee8fcd4dcd896c2ffa #1 Thu Nov 29 07:19:11 UTC 2018 armv5tejl GNU/Linux

--
Cheers,
Alexander


More information about the openbmc mailing list