]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ssh: enable ssh.socket on Debian/Ubuntu
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 1 Nov 2021 23:32:20 +0000 (23:32 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 5 Nov 2021 10:25:51 +0000 (10:25 +0000)
On Debian/Ubuntu there's a socket plus templated service for the ssh
server, which works much more nicely than the fixed one. Use it.

mkosi/__init__.py

index 0ce3b0da58f827f8f9ffc6cfb3d61981276046d2..a478fbcb97ed936d44a29cfbde7c55d36d4b526e 100644 (file)
@@ -6590,7 +6590,7 @@ def setup_ssh(
         return None
 
     if args.distribution in (Distribution.debian, Distribution.ubuntu):
-        unit = "ssh"
+        unit = "ssh.socket"
     else:
         unit = "sshd"