summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-14 16:41:03 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-14 16:41:03 +0100
commit262d10e6bd8e4a0a6a0967fbb5f89a5b989779ac (patch)
tree29b0b0d04402231a0433c67e1e115f654392cbae
parentaf1082b04a3d45a9b1d796b4271f44e87e307026 (diff)
nspawn: if we don't find bash, try sh
-rw-r--r--src/nspawn/nspawn.c1
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");