]> code.ossystems Code Review - openembedded-core.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:18:50 +0000 (15:18 +0000)
commitfc4eddecddec68d03a985086fa32db40ad0c7bfc
tree6f0b557346c0acc8b7e35fc3e88f00668f1d1f9b
parent2ddd6ddaf0c5ba14ae83347eba877ac9ef179c76
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.

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