If you have lsb_release available distro identifier is parsed from the output of `lsb_release -ir` and returned as as "CentOS", however if you don't have lsb_release installed (certainly common in CentOS Docker containers) we fall back to reading os-release or redhat-release and the value parsed out of those files is "CentOSLinux". We should likely favour os-release, which resolves this issue in practice.
As a side note, a possible reason of having lsb_release installed is by having the Google Chrome browser installed which requires lsb >= 4.0.
*** Bug 10577 has been marked as a duplicate of this bug. ***
We can make this even less likely to be an issue if we also switch to using the ID field from os-release, rather than NAME, and returning a lowercase identifier from the distro_identifier() function. For each host distribution supported by the Yocto Project, other than openSUSE, this would result in the same identifier being returned regardless of whether it was the source was os-release or lsb_release. Distribution | Version | Distributor ID | NAME | ID | ------------------------------------------------------------------------- CentOS | 7 | CentOS | CentOS Linux | centos | Debian | 8 | Debian | Debian GNU/Linux | debian | Fedora | 23 | Fedora | Fedora | fedora | Fedora | 24 | Fedora | Fedora | fedora | openSUSE | 13.2 | openSUSE project | openSUSE | opensuse | openSUSE | 42.1 | SUSE LINUX | openSUSE Leap | opensuse | Ubuntu | 14.04 | Ubuntu | Ubuntu | ubuntu | Ubuntu | 16.04 | Ubuntu | Ubuntu | ubuntu |
Patches submitted to oe-core to improve the distro reporting mechanism: http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128496.html and to meta-yocto to adapt to these changes: https://lists.yoctoproject.org/pipermail/poky/2016-November/010789.html
v2 series submitted to oe-core to better handle some of the variations in os-release format: http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128528.html
Resolved in OE-Core: * http://git.openembedded.org/openembedded-core/commit/?id=2ddd6ddaf0c5ba14ae83347eba877ac9ef179c76 * http://git.openembedded.org/openembedded-core/commit/?id=fc4eddecddec68d03a985086fa32db40ad0c7bfc * http://git.openembedded.org/openembedded-core/commit/?id=8689e5618d45c2119134ea64754430c06a93ea09 * http://git.openembedded.org/openembedded-core/commit/?id=e36066dcc3b56cac1c695370ea178b566c0ebfd6