diff options
author | alexlzhu <alexlzhu@devvm2387.atn0.facebook.com> | 2021-07-08 17:10:47 -0700 |
---|---|---|
committer | Chris Down <chris@chrisdown.name> | 2021-09-28 14:52:27 +0100 |
commit | 8c35c10d20ff7b369bfff3fbbb92a43ca2fd5938 (patch) | |
tree | be87626fe62937be49a7b3388d75d44623ed2c5d /src/run | |
parent | 5b32e48f6e3753600b9f6c44446b313294270f48 (diff) | |
download | systemd-8c35c10d20ff7b369bfff3fbbb92a43ca2fd5938.tar.gz |
core: Add ExecSearchPath parameter to specify the directory relative to which binaries executed by Exec*= should be found
Currently there does not exist a way to specify a path relative to which
all binaries executed by Exec should be found. The only way is to
specify the absolute path.
This change implements the functionality to specify a path relative to which
binaries executed by Exec*= can be found.
Closes #6308
Diffstat (limited to 'src/run')
-rw-r--r-- | src/run/run.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/run/run.c b/src/run/run.c index 664153137d..29ab3f3392 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -1714,6 +1714,7 @@ static int run(int argc, char* argv[]) { if (!strv_isempty(arg_cmdline) && arg_transport == BUS_TRANSPORT_LOCAL && !strv_find_startswith(arg_property, "RootDirectory=") && + !strv_find_startswith(arg_property, "ExecSearchPath=") && !strv_find_startswith(arg_property, "RootImage=")) { /* Patch in an absolute path to fail early for user convenience, but only when we can do it * (i.e. we will be running from the same file system). This also uses the user's $PATH, |