Check for systemd (in distros/ is fragile

Bug #1461201 reported by Lars Kellogg-Stedman
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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

Revision history for this message
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.

Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :
Scott Moser (smoser)
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Low
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.