Add TARGET_MACHINE to /etc/os-release

Brad Bishop bradleyb at fuzziesquirrel.com
Fri Nov 30 06:29:57 AEDT 2018


> On Nov 29, 2018, at 3:02 AM, Alexander A. Filippov <a.filippov at yadro.com> wrote:
>> 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
> 

heh.  oops.  Thanks for pointing that out Alexander :-)

Joseph - ignore my suggestion please.

-brad


More information about the openbmc mailing list