Check for systemd (in distros/rhel.py) is fragile

Bug #1461201 reported by Lars Kellogg-Stedman on 2015-06-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Low
Unassigned

Bug Description

The existing cloud-init code determines if systemd is in use by looking at the distribution name and version. This is prone to error because:

- RHEL derivatives other than CentOS (e.g., Scientific Linux) will fail this test, and
- Distributions that are not derived from RHEL also use systemd

Related branches

Lars Kellogg-Stedman (larsks) wrote :

The attached patch uses the same semantics as systemd's "sd_booted()" method to determine if systemd was used to boot the system. This should work independent of distribution or version, making it a much more robust mechanism for detecting if systemd is in use.

Scott Moser (smoser) on 2015-06-10
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers