]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: add --prepend-to-path to control execution
authorLoic Dachary <loic@dachary.org>
Mon, 30 Dec 2013 21:48:46 +0000 (22:48 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 3 Jan 2014 15:30:40 +0000 (16:30 +0100)
commitad6b4b4b08b6ef7ae8086f2be3a9ef521adaa88c
tree8bf69c4bf9bca0b7202149b6804764dde9554a93
parent908348b8047e8577ecf9133f2683f91423694416
ceph-disk: add --prepend-to-path to control execution

/usr/bin is hardcoded in front of some ceph programs which makes it
impossible to control where they are located via the PATH.

The hardcoded path cannot be removed altogether because it will most
likely lead to unexpected and difficult to diagnose problems for
existing installations where the PATH finds the program elsewhere.

The --prepend-to-path flag is added and defaults to /usr/bin : it prepends
to the PATH environment variable. The hardcoded path is removed
and the PATH will be used: since /usr/bin is searched first, the
legacy behavior will not change.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk