From 29cddc7d2e17d1e807423e0764f460d23e57979d Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Fri, 6 Oct 2023 09:23:52 +0200 Subject: [PATCH] systemvm: remove config in /etc/pam.d/systemd-user to fix user@0.service the service `user@0.service` fails in system vms and virtual routers This PR removes a change to fix memory leak of SSH connections in the systemvm templates with old linux kernel. --- systemvm/debian/opt/cloud/bin/setup/init.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/systemvm/debian/opt/cloud/bin/setup/init.sh b/systemvm/debian/opt/cloud/bin/setup/init.sh index 436b8349336f..ae13700fffd1 100644 --- a/systemvm/debian/opt/cloud/bin/setup/init.sh +++ b/systemvm/debian/opt/cloud/bin/setup/init.sh @@ -209,8 +209,7 @@ setup_interface_sshd() { fi systemctl restart systemd-journald - # Patch known systemd/sshd memory leak - https://github.com/systemd/systemd/issues/8015#issuecomment-476160981 - echo '@include null' >> /etc/pam.d/systemd-user + # Enable and Start SSH systemctl enable --now --no-block ssh }