Trim down root's systemd user session

intrigeri
2025-08-05T12:43:05Z

The systemd user session for root, that seems to be started every time the remote shell runs a command as root, starts some stuff, e.g. GnuPG agents, which seems useless at least in this specific context… and perhaps in actual Tails usage as well. This adds tons of noise in the Journal for test suite runs, and potentially slows things down.

What would be the disadvantage of disabling these services for all root sessions, including those started by actual users, via ConditionUser=!root in override files?

cc @anonym