~oddbloke/cloud-init/lp1411582

Viewing all changes in revision 1103.

  • Committer: Scott Moser
  • Date: 2015-05-15 14:53:10 UTC
  • mfrom: (1089.4.1 cloud-init)
  • Revision ID: smoser@ubuntu.com-20150515145310-rtr4jxhzefd81sfq
detect that CentOS 7 uses systemd, write previous-hostname in that case.

Also, on RHEL-type systems using systemd, 
/var/lib/cloud/data/previous-hostname would never get created (because
rather then write to files, it was executing hostnamectl)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: