Workaround for console session timeout terminating user processes
The change https://review.opendev.org/c/starlingx/config-files/+/861633
causes an unexpected behavior of systemd, terminating user processes
in case of session timeout, between the moment after bootstrap and before unlock. As a workaround, this change removes pam_systemd.so from PAM common-session file during bootstrap, avoiding the issue and also performance degradation.
Test Plan (Debian AIO-SX):
[PASS] Install, bootstrap and unlock.
[PASS] Verify "pam_systemd.so" config is removed after bootstrap.
[PASS] Verify there is no extra "systemd --user" processes running in
background.
[PASS] Verify no issues occur in standard upgrade scenario or during runtime manifest apply.
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/870667 /opendev. org/starlingx/ stx-puppet/ commit/ a09e31f934c28b2 45337278ae7c982 8953d3b6a8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit a09e31f934c28b2 45337278ae7c982 8953d3b6a8
Author: Davi Frossard <email address hidden>
Date: Mon Jan 16 13:24:21 2023 -0500
Workaround for console session timeout terminating user processes
The change https:/ /review. opendev. org/c/starlingx /config- files/+ /861633
causes an unexpected behavior of systemd, terminating user processes
in case of session timeout, between the moment after bootstrap and before unlock. As a workaround, this change removes pam_systemd.so from PAM common-session file during bootstrap, avoiding the issue and also performance degradation.
Following changes must be reverted: /review. opendev. org/c/starlingx /config- files/+ /866211 /review. opendev. org/c/starlingx /stx-puppet/ +/867098 /review. opendev. org/c/starlingx /config- files/+ /861633
https:/
https:/
https:/
Test Plan (Debian AIO-SX):
[PASS] Install, bootstrap and unlock.
[PASS] Verify "pam_systemd.so" config is removed after bootstrap.
[PASS] Verify there is no extra "systemd --user" processes running in
background.
[PASS] Verify no issues occur in standard upgrade scenario or during runtime manifest apply.
Partial-Bug: 1999049 cea51f65205bfdb f8d39241569
Signed-off-by: Davi Frossard <email address hidden>
Change-Id: I3c8964b1aa961f