mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 13:11:32 +00:00
nspawn: if we don't find bash, try sh
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user