Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34827 - [autofs] systemd-user-sessions.service starting before autofs.service

Attached to Project: Community Packages
Opened by Brian BIdulock (bidulock) - Wednesday, 17 April 2013, 17:17 GMT
Last edited by Balló György (City-busz) - Wednesday, 18 December 2013, 03:34 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

systemd-user-sessions.service is starting before autofs.service has started, resulting in the ability to log in without the system being able to mount the user's home directory.

Additional info:
* package version: 5.0.7

Steps to reproduce:

Set tty to autologin to user id that requires home directory NIS map mounted by autofs.

Reboot system.

Observe autologin failure (no home directory).

Solution:

Add to service file:

Before=systemd-user-sessions.service
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 18 December 2013, 03:34 GMT
Reason for closing:  Upstream
Comment by Lukas Fleischer (lfleischer) - Tuesday, 04 June 2013, 13:25 GMT
Did you report this upstream?
Comment by Brian BIdulock (bidulock) - Tuesday, 04 June 2013, 13:48 GMT
The response will obviously be that this is a "sample" service file, which it is.
Comment by Balló György (City-busz) - Wednesday, 18 December 2013, 01:24 GMT
I think it would not be the expected behavior by users, who don't use autofs to mount the user's home directory. But you can customize unit files on your system as described here:
https://wiki.archlinux.org/index.php/Systemd#Editing_provided_unit_files

Just create the file /etc/systemd/system/autofs.service.d/systemd-user-sessions.conf with the following content:
[Unit]
Before=systemd-user-sessions.service

Loading...