Skip to contentSkip to conversation

/etc/os-release

DISCUSSION akuster 3 participants 4 messages Jul 14, 2014

lore
Share & tools
lore

akuster

author
#0 lore raw

Hello all,

I noticed some reference to /etc/os-release in some recipes. Where can I find the initial creation of /etc/os-release? If one is not created, would there desire to have one?

regards,
Armin

#1 lore raw
Quoted 6 lines · akuster

Hello all,

I noticed some reference to /etc/os-release in some recipes. Where can I find the initial creation of /etc/os-release? If one is not created, would there desire to have one?

Really? We reference it in the meta/lib/oe/lsb.py release_dict_file() function to search for LSB information of the host machine to identify the host distro version information.

Can you be specific about which recipes are using os-release, I did do a search.

Sau!

Quoted 2 lines

regards,
Armin

#2 lore raw
Quoted 8 lines · Saul Wold
Quoted 6 lines · akuster

Hello all,

I noticed some reference to /etc/os-release in some recipes. Where can I find the initial creation of /etc/os-release? If one is not created, would there desire to have one?

Quoted 6 lines
Quoted 1 line

Really? We reference it in the meta/lib/oe/lsb.py release_dict_file()

function to search for LSB information of the host machine to identify the host distro version information.

Can you be specific about which recipes are using os-release, I did do a search.

I'm pretty sure we don't have an os-release recipe in oe-core at all yet, so the file isn't going to exist on target. Mentor has one in meta-mentor at the moment pending time to submit it again / poke on the existing thread. See the thread with the subject "[RFC PATCH 0/2] Add /etc/os-release". It's definitely something we should have, in my opinion.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
author
#3 lore raw

Chris,

Quoted 16 lines · Christopher Larson

On Mon, Jul 14, 2014 at 3:50 PM, Saul Wold <[email protected] <mailto:[email protected]>> wrote:

On 07/14/2014 03:38 PM, akuster wrote:

Hello all,

I noticed some reference to /etc/os-release in some recipes. Where can I
find the initial creation of /etc/os-release? If one is not created,
would there desire to have one?

Really? We reference it in the meta/lib/oe/lsb.py release_dict_file() function to search for LSB information of the host machine to identify the host distro version information.

Quoted 5 lines

Can you be specific about which recipes are using os-release, I did do a search.

I'm pretty sure we don't have an os-release recipe in oe-core at all yet, so the file isn't going to exist on target. Mentor has one in meta-mentor at the moment pending time to submit it again / poke on the existing thread. See the thread with the subject "[RFC PATCH 0/2] Add /etc/os-release". It's definitely something we should have, in my opinion.

Yeah, That is what I was thinking of.
Thanks for the pointer.

- Armin

Quoted 6 lines
Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics