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.
This commit is contained in:
Wei Zhou 2023-10-10 12:16:44 +02:00 committed by GitHub
parent c0128e2f9a
commit e290ac5451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}