summaryrefslogtreecommitdiffstats
path: root/roles/python
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-02-11 22:28:19 +0100
committerAhmed AbdelHalim <[email protected]>2026-02-11 22:56:37 +0100
commitabd656d3b567fb6ac2f960ac06e5a8c4507bc4ce (patch)
tree74b193d080faebbf44d93e18a48b257688c17da3 /roles/python
parent649fce4b737473ce8c6e71b2afd4bb5255cc0e13 (diff)
Fix user lingering and pipewire systemd user failures
Create the linger file directly instead of using loginctl enable-linger, which fails in containers where systemd-logind isn't fully functional. The linger file at /var/lib/systemd/linger/<user> is what systemd checks to persist user instances across logouts. After creating the linger file, explicitly start user@<uid>.service to boot the user's systemd instance immediately. This creates the D-Bus session bus socket at /run/user/<uid>/bus, which is required for systemctl --user to work. Without this, roles like pipewire that manage user-scoped services fail with "Failed to connect to user scope bus". This also refactors the user creation to simplify the logic and make the user.id available for both cases of password or default_password Co-Authored-By: Claude.ai
Diffstat (limited to 'roles/python')
0 files changed, 0 insertions, 0 deletions