fix OpenSSH service waiting for timeout
Patch for https://github.com/gsauthof/dracut-sshd/issues/2
This commit is contained in:
20
sys-kernel/dracut-sshd/files/gentoo-sshd.service.patch
Normal file
20
sys-kernel/dracut-sshd/files/gentoo-sshd.service.patch
Normal 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
|
||||
Reference in New Issue
Block a user