lib/oe/lsb.py: fall back to /etc/os-release for host distro ID
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 28 Jun 2013 16:09:46 +0000 (17:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jul 2013 21:23:48 +0000 (22:23 +0100)
commit07537b326949f769a14a789e13332610f48731bd
tree7bbd6d71a0175ae4a51edd4728a7eea8682aa9e4
parent48cdc066ef5b6b0d411cd9c95113af84e60e7b27
lib/oe/lsb.py: fall back to /etc/os-release for host distro ID

The new standard for host distribution identification [1] is
/etc/os-release, and a number of newer distributions provide this file,
so add support for this in order to pick up more distributions.
Additionally, handle "rolling release" style distributions that don't
report a version number, e.g. Arch Linux.

With this change we can identify the most common distributions, so this
should satisfy [YOCTO #4271]. Note that this doesn't imply support for
these distros as build hosts, just that we can identify them.

[1] http://www.freedesktop.org/software/systemd/man/os-release.html

(From OE-Core rev: bff50b747cde04007ead65dde4207b16a8e1bf08)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/lsb.py