systemd detection on Enterprise Linux needs to look for clones

Bug #1341508 reported by Neil Wilson
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Low
Unassigned

Bug Description

The Platform identification for Enterprise Linux changes based upon the clone used.

For example CentOS is:

>>> platform.linux_distribution()
('CentOS Linux', '7.0.1406', 'Core')

And no doubt Scientific Linux, etc. will be different again.

If it's not 'Fedora', then just checking whether /etc/redhat-release exists should be enough to identify Enterprise Linux. Then check the relevant major numbers.

Revision history for this message
Choe, Cheng-Dae (whitekid) wrote :

Just a simple patch

Revision history for this message
alphacc (alphacc) wrote :

A fix for Scientific Linux and CentOS.

Revision history for this message
Scott Moser (smoser) wrote :

I'd like to make this configurable, and for the list of things to be a list of regex expressions.

Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Low
Changed in centos:
status: New → Invalid
no longer affects: centos
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.