Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix account service race #156

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

taukakao
Copy link
Member

@taukakao taukakao commented Dec 1, 2023

The accounts daemon service sometimes runs, while var is not mounted yet. This causes the service to ignore the contents of /var/lib/AccountsService/users/ and later delete the contents. This causes gdm to sometimes forget the user session and will default back to the first setup session.

Screenshot from 2023-12-01 14-56-53

This PR tells systemd to reach nss-user-lookup.target after the abroot mount service. Since accounts daemon depends on nss-user-lookup.target, it will always start after the abroot-mount service.

Screenshot from 2023-12-01 13-58-09

@taukakao taukakao requested a review from axtloss December 1, 2023 14:25
@matbme matbme merged commit 03083c5 into Vanilla-OS:main Dec 1, 2023
2 checks passed
@taukakao taukakao deleted the fix-account-service-race-pr branch April 13, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants