CentOS 7 should be treated like RHEL 7 in dist/rhel.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cloudinit/
def uses_systemd(self):
# Fedora 18 and RHEL 7 were the first adopters in their series
(dist, vers) = util.system_
major = (int)(vers.
return ((dist.
or (dist.startswit
This will not produce the correct behavior on CentOS 7, Scientific LInux 7, or any other RHEL-based distribution. Among other issues, this will prevent cloud-init from setting the system hostname correctly. Because these distributions are treated like RHEL6 and earlier, cloud-init writes the persistent hostname into /etc/sysconfig/
I propose that we replace uses_systemd with the following:
def uses_systemd(self):
return os.path.
The attach patch replaces the distribution-name heuristics in uses_systemd with a check for the systemctl binary.