units: order systemd-user-sessions.service after home.mount

This should make /home as automount work reasonably well.

If /home is an automount this has little effect at boot, because if the
automount is not triggered it doesn't matter how the associated mount is
ordered.

It does matter at shutdown however, where home.mount is likely active
now. There the ordering means we'll end sessions first, and only then
deactivate home.mount.

Fixes: #16291
This commit is contained in:
Lennart Poettering 2020-08-06 23:33:29 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent fdc6c4f49c
commit bbac7da2b3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
[Unit]
Description=Permit User Sessions
Documentation=man:systemd-user-sessions.service(8)
After=remote-fs.target nss-user-lookup.target network.target
After=remote-fs.target nss-user-lookup.target network.target home.mount
[Service]
Type=oneshot