systemvm: remove config in /etc/pam.d/systemd-user to fix user@0.service (#8048)

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.

(cherry picked from commit e290ac54514ab1868d775f18a3e783cb30d6d5d5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Wei Zhou 2023-10-10 12:16:44 +02:00 committed by Rohit Yadav
parent 18e7276df0
commit 846cc2f26c

View File

@ -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
}