]> 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)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:17:11 +0000 (16:17 -0500)
commit06bbea187293ac52aefbcf4e98c162bb3286341d
treedc047d0d6004f6ed2530ac96bc6a969a7071d5b6
parentccf182241dc04c79e2377b6ba2f060dbfe6dddae
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>
(cherry picked from commit ad6b4b4b08b6ef7ae8086f2be3a9ef521adaa88c)
src/ceph-disk