mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
vmspawn: ignore failure from sshd-vsock@ unit
The "main" sshd@.service unit ignores the return code from per-session instances, so do the same for the vsock variant.
This commit is contained in:
committed by
Lennart Poettering
parent
f26ded4e31
commit
df8bd4c171
@@ -2053,7 +2053,7 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
|
||||
"systemd.unit-dropin.sshd-vsock@.service:"
|
||||
"[Service]\n"
|
||||
"ExecStart=\n"
|
||||
"ExecStart=sshd -i -o 'AuthorizedKeysFile=%d/ssh.ephemeral-authorized_keys-all .ssh/authorized_keys'\n"
|
||||
"ExecStart=-sshd -i -o 'AuthorizedKeysFile=%d/ssh.ephemeral-authorized_keys-all .ssh/authorized_keys'\n"
|
||||
"ImportCredential=ssh.ephemeral-authorized_keys-all\n");
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to set credential systemd.unit-dropin.sshd-vsock@.service: %m");
|
||||
|
||||
Reference in New Issue
Block a user