1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

nspawn: if we don't find bash, try sh

This commit is contained in:
Lennart Poettering 2014-02-14 16:41:03 +01:00
parent af1082b04a
commit 262d10e6bd

View File

@ -1968,6 +1968,7 @@ int main(int argc, char *argv[]) {
else { else {
chdir(home ? home : "/root"); chdir(home ? home : "/root");
execle("/bin/bash", "-bash", NULL, env_use); execle("/bin/bash", "-bash", NULL, env_use);
execle("/bin/sh", "-sh", NULL, env_use);
} }
log_error("execv() failed: %m"); log_error("execv() failed: %m");