diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-14 16:41:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-14 16:41:03 +0100 |
commit | 262d10e6bd8e4a0a6a0967fbb5f89a5b989779ac (patch) | |
tree | 29b0b0d04402231a0433c67e1e115f654392cbae /src | |
parent | af1082b04a3d45a9b1d796b4271f44e87e307026 (diff) |
nspawn: if we don't find bash, try sh
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 2a0edf6abc..51a1a6651d 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1968,6 +1968,7 @@ int main(int argc, char *argv[]) { else { chdir(home ? home : "/root"); execle("/bin/bash", "-bash", NULL, env_use); + execle("/bin/sh", "-sh", NULL, env_use); } log_error("execv() failed: %m"); |