Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Regards, Artem
[1]: https://twitter.com/CentOS/status/756139559801462785 [2]: https://gist.github.com/artem-sidorenko/d69021c66958ba75df23304909493de3 [3]: https://www.sidorenko.io/blog/2016/06/30/install-chef-on-raspberry-pi-with-c...
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5b42bb6f...).
IMHO it's up to Chef to fix their OS detection like we did.
Rich.
From the commit message: In newer CentOS 7 versions /etc/redhat-release says that the distro is derived from RHEL, so we need to look at /etc/centos-release for actually identifying it as CentOS.
If I understand this right, this is not a bug related to ARM images, but a general change in CentOS?
Artem
On 07/24/2016 04:13 PM, Richard W.M. Jones wrote:
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5b42bb6f...).
IMHO it's up to Chef to fix their OS detection like we did.
Rich.
On 2016-07-25 10:17, Artem Sidorenko wrote:
From the commit message:
In newer CentOS 7 versions /etc/redhat-release says that the distro is derived from RHEL, so we need to look at /etc/centos-release for actually identifying it as CentOS.
If I understand this right, this is not a bug related to ARM images, but a general change in CentOS?
Artem
On 07/24/2016 04:13 PM, Richard W.M. Jones wrote:
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5b42bb6f...).
IMHO it's up to Chef to fix their OS detection like we did.
Rich.
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Hi,
wouldn't be the checking of /etc/os-release file a better way, how to detect the distro, since CentOS/RHEL/OEL/SC 7 is using systemd?
See: http://0pointer.de/blog/projects/os-release.html
//Zdenek
On Mon, Jul 25, 2016 at 11:48:10AM +0200, Zdenek Sedlak wrote:
On 2016-07-25 10:17, Artem Sidorenko wrote:
From the commit message:
In newer CentOS 7 versions /etc/redhat-release says that the distro is derived from RHEL, so we need to look at /etc/centos-release for actually identifying it as CentOS.
If I understand this right, this is not a bug related to ARM images, but a general change in CentOS?
Artem
On 07/24/2016 04:13 PM, Richard W.M. Jones wrote:
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5b42bb6f...).
IMHO it's up to Chef to fix their OS detection like we did.
Rich.
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Hi,
wouldn't be the checking of /etc/os-release file a better way, how to detect the distro, since CentOS/RHEL/OEL/SC 7 is using systemd?
Not necessarily, since we need to detect RHEL/CentOS releases back to CentOS 3, not to mention dozens of other Linux distros, Windows, *BSD, etc. Not all the world is systemd. Not all the world is even Linux.
However if os-release exists, we will use it in some circumstances.
Rich.
On 2016-07-26 12:58, Richard W.M. Jones wrote:
On Mon, Jul 25, 2016 at 11:48:10AM +0200, Zdenek Sedlak wrote:
On 2016-07-25 10:17, Artem Sidorenko wrote:
From the commit message:
In newer CentOS 7 versions /etc/redhat-release says that the distro is derived from RHEL, so we need to look at /etc/centos-release for actually identifying it as CentOS.
If I understand this right, this is not a bug related to ARM images, but a general change in CentOS?
Artem
On 07/24/2016 04:13 PM, Richard W.M. Jones wrote:
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5b42bb6f...).
IMHO it's up to Chef to fix their OS detection like we did.
Rich.
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Hi,
wouldn't be the checking of /etc/os-release file a better way, how to detect the distro, since CentOS/RHEL/OEL/SC 7 is using systemd?
Not necessarily, since we need to detect RHEL/CentOS releases back to CentOS 3, not to mention dozens of other Linux distros, Windows, *BSD, etc. Not all the world is systemd. Not all the world is even Linux.
However if os-release exists, we will use it in some circumstances.
Rich.
Fair enough, I missed that this is a part of libguestfs :-)
//Zdenek
On 25/07/16 09:17, Artem Sidorenko wrote:
From the commit message:
In newer CentOS 7 versions /etc/redhat-release says that the distro is derived from RHEL, so we need to look at /etc/centos-release for actually identifying it as CentOS.
If I understand this right, this is not a bug related to ARM images, but a general change in CentOS?
only in the ARM images, the x86_64 install already does this. eg:
[root@n30 ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@n30 ~]# cat /etc/centos-release CentOS Linux release 7.2.1511 (Core) [root@n30 ~]# cat /etc/centos-release-upstream Derived from Red Hat Enterprise Linux 7.2 (Source) [root@n30 ~]# uname -a Linux n30.dusty.ci.centos.org 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@n30 ~]# rpm -q centos-release centos-release-7-2.1511.el7.centos.2.10.x86_64
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 24/07/16 15:13, Richard W.M. Jones wrote:
On Sun, Jul 24, 2016 at 12:31:37PM +0200, Artem Sidorenko wrote:
Hey Centos ARM list,
As requested via twitter today [1],
On the current Raspberry Pi 3 image the /etc/redhat-release isn't a symlink to centos-release like on x86, but a file with "Derived from Red Hat Enterprise Linux 7.2 (Source)" [2].
This might lead to errors in the OS auto detection, like with Chef [3].
Yup, this affected libguestfs (https://github.com/libguestfs/libguestfs/commit/1ff463e8692aae4313bd5
b42bb6f09932bb63392).
IMHO it's up to Chef to fix their OS detection like we did.
at the least though, from our side, lets get to /etc/centos-release and /etc/redhat-release looking the same as they do on corrosponding x86_64 installs. and have /etc/centos-release-upstream report the upstream 'derived from' bit.
- -- Karanbir Singh, Project Lead, The CentOS Project +44-207-0999389 | http://www.centos.org/ | twitter.com/CentOS GnuPG Key : http://www.karan.org/publickey.asc