ssh.service: avoid indirection via /bin/sh + do not run test mode in ExecStartPre
authorMichael Prokop <mika@grml.org>
Mon, 29 Aug 2022 15:56:38 +0000 (17:56 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 29 Aug 2022 15:56:38 +0000 (17:56 +0200)
commit6d869c1c62e716b394fd04caf33994f69fafda34
tree8f8748c22cd6d74a8b1c6fa1f263be0468b80835
parent12daa74c0a5d83c13e582dc59ad3b38c8588ef7f
ssh.service: avoid indirection via /bin/sh + do not run test mode in ExecStartPre

There's no point in running ssh-keygen under /bin/sh, so let's drop this
unnecessary indirection.

Furthermore there shouldn't be any need to run `sshd -t` before starting
the ssh daemon on the live system, as we definitely would like to get
sshd started if it was requested to so, even if there might be a
(possibly intermittent) problem with it. The test run makes sense for
reloading an already running ssh daemon, and we keep this in place.

Thanks to AndrĂ¡s Korn for spotting this
etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE