]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-13847] Using full paths for partx and partprobe executables. 383/head
authorMartin Palma <martin@palma.bz>
Fri, 8 Jan 2016 13:17:20 +0000 (14:17 +0100)
committerMartin Palma <martin@palma.bz>
Tue, 9 Feb 2016 12:20:58 +0000 (13:20 +0100)
Signed-off-by: Martin Palma <martin@palma.bz>
ceph_deploy/osd.py

index 40d09eaaecc01659eefda25239eca5508d01a568..131c4faabdb1c8c0fc6033eb4b014282d08991e9 100644 (file)
@@ -427,10 +427,11 @@ def disk_zap(args):
         if distro.normalized_name.startswith(('centos', 'red')):
             LOG.info('calling partx on zapped device %s', disk)
             LOG.info('re-reading known partitions will display errors')
+            partx_executable = system.executable_path(distro.conn, 'partx')
             remoto.process.run(
                 distro.conn,
                 [
-                    'partx',
+                    partx_executable,
                     '-a',
                     disk,
                 ],
@@ -438,10 +439,11 @@ def disk_zap(args):
 
         else:
             LOG.debug('Calling partprobe on zapped device %s', disk)
+            partprobe_executable = system.executable_path(distro.conn, 'partprobe')
             remoto.process.run(
                 distro.conn,
                 [
-                    'partprobe',
+                    partprobe_executable,
                     disk,
                 ],
             )