~oddbloke/cloud-init/fix-gce-az

  • Committer: Scott Moser
  • Date: 2015-06-10 16:30:02 UTC
  • mfrom: (1110.1.3 master)
  • Revision ID: smoser@ubuntu.com-20150610163002-qj95kijgx4qj2x79
check for systemd using sd_booted() semantics

The existing 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
- Distributions that are not derived from RHEL also use systemd

This patch makes cloud-init use the same logic that is used in systemd's
sd_booted() method
 http://www.freedesktop.org/software/systemd/man/sd_booted.html
Filename Latest Rev Last Changed Committer Comment Size
..
bin 559.2.1 12 years ago Joshua Harlow Move binaries to an actual binary dir. Diff
cloudinit 144 14 years ago Scott Moser globally remove ec2init and rename to cloudinit Diff
config 271 13 years ago Scott Moser remove 'biultin' config, separate cloud.cfg This Diff
doc 133 14 years ago Scott Moser add doc/userdata.txt, move examples to doc/. Diff
packages 559.2.335 12 years ago Joshua Harlow 1. Moving around the packages dir. 2. Adjusting th Diff
systemd 465 12 years ago Scott Moser Add sample/example systemd config files This impo Diff
sysvinit 559.2.435 12 years ago Scott Moser setup.py: rename "daemon type" to "init system" T Diff
templates 14 15 years ago Bazaar Package Importer * ec2-set-apt-sources.py: - Use a template to ge Diff
tests 499.1.1 12 years ago Mike Milner Add initial unit test framework. Add initial tests Diff
tools 82 14 years ago Scott Moser add tools/ directory and 'write-mime-multipart' w Diff
upstart 80 14 years ago Scott Moser put upstart files in upstart/, minor other changes Diff
.bzrignore 1052.1.3 9 years ago Barry Warsaw Fix file modes to be Python 2/3 compatible. 42 bytes Diff Download File
ChangeLog 1112 9 years ago Scott Moser check for systemd using sd_booted() semantics The 40.3 KB Diff Download File
HACKING.rst 1000.1.2 10 years ago Jay Faulkner Remove pylint pylint was not passing, and per smo 1.5 KB Diff Download File
LICENSE 450 12 years ago Scott Moser add LICENSE file 34.3 KB Diff Download File
Makefile 1099 9 years ago Scott Moser fix 'Make pyflakes' 1.4 KB Diff Download File
MANIFEST.in 1052.1.1 9 years ago Barry Warsaw * Added a simple tox.ini file * Use universal_newl 167 bytes Diff Download File
requirements.txt 1052.1.24 9 years ago Barry Warsaw Port the MAAS code to oauthlib. 948 bytes Diff Download File
File setup.py 1052.1.2 9 years ago Barry Warsaw Only install cheetah (and only run the cheetah tem 5.9 KB Diff Download File
test-requirements.txt 1052.1.38 9 years ago Scott Moser make bddeb work with python3 or python2 painful, 71 bytes Diff Download File
TODO.rst 978 10 years ago Scott Moser move TODO to TODO.rst 2.1 KB Diff Download File
tox.ini 1063 9 years ago Scott Moser tox: set LC_ALL=en_US.utf-8 rather than C this wo 462 bytes Diff Download File