[yocto] Yocto 2.2 Morty supported Linux Distros

Joshua Lock joshua.g.lock at linux.intel.com
Thu Nov 3 03:34:12 PDT 2016


On Wed, 2016-11-02 at 21:31 +0000, Joshua Lock wrote:
> On Wed, 2016-11-02 at 17:41 +0100, Bas Mevissen wrote:
> > 
> > On 02/11/16 11:05, Joshua Lock wrote:
> > 
> > > 
> > > 
> > > Can someone with a CentOS 7 box pastebin their /etc/lsb-release,
> > > /etc/redhat-release and /etc/os-release?
> > > 
> > 
> > /etc/lsb-release not available
> > 
> > 
> > At launch (1406):
> > 
> > /etc/redhat-release (link to /etc/centos-release):
> > CentOS Linux release 7.2.1406 (Core)
> > 
> > /etc/os-release:
> > NAME="CentOS Linux"
> > VERSION="7 (Core)"
> > ID="centos"
> > ID_LIKE="rhel fedora"
> > VERSION_ID="7"
> > PRETTY_NAME="CentOS Linux 7 (Core)"
> > ANSI_COLOR="0;31"
> > CPE_NAME="cpe:/o:centos:centos:7"
> > HOME_URL="https://www.centos.org/"
> > BUG_REPORT_URL="https://bugs.centos.org/"
> > 
> > 
> > 
> > Currently (1511):
> > 
> > /etc/redhat-release (link to /etc/centos-release):
> > CentOS Linux release 7.2.1511 (Core)
> > 
> > /etc/os-release:
> > NAME="CentOS Linux"
> > VERSION="7 (Core)"
> > ID="centos"
> > ID_LIKE="rhel fedora"
> > VERSION_ID="7"
> > PRETTY_NAME="CentOS Linux 7 (Core)"
> > ANSI_COLOR="0;31"
> > CPE_NAME="cpe:/o:centos:centos:7"
> > HOME_URL="https://www.centos.org/"
> > BUG_REPORT_URL="https://bugs.centos.org/"
> > 
> > CENTOS_MANTISBT_PROJECT="CentOS-7"
> > CENTOS_MANTISBT_PROJECT_VERSION="7"
> > REDHAT_SUPPORT_PRODUCT="centos"
> > REDHAT_SUPPORT_PRODUCT_VERSION="7"
> > 
> > So it seems to me that things have not changed in an unexpected
> > way.
> 
> Thank you! Any chance you can share the output of `lsb_release -ir`
> also?

Not to worry, I used a CentOS container to test this myself:

# lsb_release -ir
Distributor ID: CentOS
Release:        7.2.1511

The problem is that we check multiple sources for a distro's name,
favouring the output of lsb_release -ir.

If you have lsb_release available your system is reported as CentOS,
otherwise we fall back to reading os-release or redhat-release and get
CentOSLinux.

I've filed a bug to track this issue:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=10591

Regards,

Joshua



More information about the yocto mailing list