diff options
author | Scott Moser <smoser@brickies.net> | 2016-08-23 16:48:38 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-23 16:48:38 -0400 |
commit | 7aa1c8e7d36fb68b1a3f020fbcbd45e4b0d1e9aa (patch) | |
tree | 2708c2365a0571f3db14fabd2324fdaef09f9735 /cloudinit/util.py | |
parent | 2865eaceea68d592b03018d09c64f01fe3456a44 (diff) | |
parent | 6b294286e0d0a1da6b24b338cae3b900a763e9d2 (diff) | |
download | vyos-cloud-init-7aa1c8e7d36fb68b1a3f020fbcbd45e4b0d1e9aa.tar.gz vyos-cloud-init-7aa1c8e7d36fb68b1a3f020fbcbd45e4b0d1e9aa.zip |
merge trunk at 0.7.7~bzr1160
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 83c2c0d2..45d49e66 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -76,7 +76,9 @@ FALSE_STRINGS = ('off', '0', 'no', 'false') # Helper utils to see if running in a container -CONTAINER_TESTS = ('running-in-container', 'lxc-is-container') +CONTAINER_TESTS = (['systemd-detect-virt', '--quiet', '--container'], + ['running-in-container'], + ['lxc-is-container']) def decode_binary(blob, encoding='utf-8'): @@ -1749,7 +1751,7 @@ def is_container(): try: # try to run a helper program. if it returns true/zero # then we're inside a container. otherwise, no - subp([helper]) + subp(helper) return True except (IOError, OSError): pass |