nspawn: when running nspawn, set a $PATH including both bin + sbin by default (#8756)

We don't know what the container payload needs, hence default to a PATH
with both bin and sbin included, as well as / and /usr.

Follow-up for #8324

Fixes: #8698
This commit is contained in:
Lennart Poettering
2018-04-20 11:36:25 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent d18b57f7fd
commit 0c300adfa4
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -2267,7 +2267,7 @@ static int inner_child(
char as_uuid[37];
unsigned n_env = 1;
const char *envp[] = {
"PATH=" DEFAULT_PATH_SPLIT_USR,
"PATH=" DEFAULT_PATH_COMPAT,
NULL, /* container */
NULL, /* TERM */
NULL, /* HOME */