chiark / gitweb /
nspawn: if we don't find bash, try sh
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Feb 2014 15:41:03 +0000 (16:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Feb 2014 15:41:03 +0000 (16:41 +0100)
src/nspawn/nspawn.c

index 2a0edf6..51a1a66 100644 (file)
@@ -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");