summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2017-09-25 14:29:13 -0400
committerScott Moser <smoser@ubuntu.com>2017-09-25 14:29:13 -0400
commitad099a53d120e88719a5ad50f29d22e9f7a52bc7 (patch)
treeca7b3f07b127d15713e5db2b5d1a70858668dc29 /cloudinit/sources
parentda6562e21d0b17a0957adc0c5a2c9da076e0d219 (diff)
downloadvyos-cloud-init-ad099a53d120e88719a5ad50f29d22e9f7a52bc7.tar.gz
vyos-cloud-init-ad099a53d120e88719a5ad50f29d22e9f7a52bc7.zip
AltCloud: Trust PATH for udevadm and modprobe.
Previously we had hard coded paths in /sbin for the udevadm and modprobe programs invoked by AltCloud. Its more flexible to expect the PATH to be set correctly. Debian: #852564
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceAltCloud.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceAltCloud.py b/cloudinit/sources/DataSourceAltCloud.py
index ed1d691a..c78ad9eb 100644
--- a/cloudinit/sources/DataSourceAltCloud.py
+++ b/cloudinit/sources/DataSourceAltCloud.py
@@ -28,8 +28,8 @@ LOG = logging.getLogger(__name__)
CLOUD_INFO_FILE = '/etc/sysconfig/cloud-info'
# Shell command lists
-CMD_PROBE_FLOPPY = ['/sbin/modprobe', 'floppy']
-CMD_UDEVADM_SETTLE = ['/sbin/udevadm', 'settle', '--timeout=5']
+CMD_PROBE_FLOPPY = ['modprobe', 'floppy']
+CMD_UDEVADM_SETTLE = ['udevadm', 'settle', '--timeout=5']
META_DATA_NOT_SUPPORTED = {
'block-device-mapping': {},