fix OpenSSH service waiting for timeout

Patch for https://github.com/gsauthof/dracut-sshd/issues/2
This commit is contained in:
Florian Tham
2020-11-15 11:30:54 +01:00
parent 393ea8de23
commit 07e2c5d7a1
3 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
--- a/46sshd/sshd.service 2020-11-15 11:18:05.875510770 +0100
+++ b/46sshd/sshd.service 2020-11-15 11:18:58.253009836 +0100
@@ -11,7 +11,7 @@
#
# On distributions such as Gentoo, sshd doesn't come with
# systemd support, thus, one has to set `Type=simple` there.
-Type=notify
+Type=simple
EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config
EnvironmentFile=-/etc/crypto-policies/back-ends/openssh-server.config
@@ -21,7 +21,7 @@
# Start command requires the `-e` option if and only if `Type=simple`
# is configured, see above.
-ExecStart=/usr/sbin/sshd -D $SSHD_OPTS $OPTIONS $CRYPTO_POLICY
+ExecStart=/usr/sbin/sshd -D -e $SSHD_OPTS $OPTIONS $CRYPTO_POLICY
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process