]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/lsb: prefer /etc/os-release for distribution data
authorJoshua Lock <joshua.g.lock@intel.com>
Tue, 8 Nov 2016 14:49:55 +0000 (14:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Nov 2016 15:19:54 +0000 (15:19 +0000)
commit42441ea4819dfeca7183f6a095c99708124ded5d
tree021edfc9ebc0ce416109ad57a3715db2142329bc
parent545f5f96d9b7447583d865de7b35e444a9785426
lib/oe/lsb: prefer /etc/os-release for distribution data

os-release(5) is an increasingly standard source of operating system
identification and more likely to be present on modern OS deployments, i.e.
many container variants of common distros include os-release and not the
lsb_release tool.

Therefore we should favour parsing /etc/os-release in distro_identifier(),
try lsb_release when that fails and finally fall back on various distro
specific sources of OS identification.

(From OE-Core rev: fc4eddecddec68d03a985086fa32db40ad0c7bfc)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/lsb.py