]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
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)
committerSaul Wold <sgw@linux.intel.com>
Tue, 2 Jul 2013 14:58:08 +0000 (07:58 -0700)
commitbff50b747cde04007ead65dde4207b16a8e1bf08
treedfb4390e21b5ca1fb70bf5f619cb5ea84d3e02da
parent458e76e470966d759067b2f6e6f00fa75a2963f3
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

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