[Git-commits] [grml/grml-live] 6d869c: ssh.service: avoid indirection via /bin/sh + do no...

Michael Prokop noreply at github.com
Mon Aug 29 18:04:39 CEST 2022


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: 6d869c1c62e716b394fd04caf33994f69fafda34
      https://github.com/grml/grml-live/commit/6d869c1c62e716b394fd04caf33994f69fafda34
  Author: Michael Prokop <mika at grml.org>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE

  Log Message:
  -----------
  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




More information about the Git-commits mailing list