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

nixos/users-groups: move home dir creation to systemd services #98

Closed
wants to merge 1 commit into from

Conversation

jsoo1
Copy link
Collaborator

@jsoo1 jsoo1 commented Mar 30, 2023

Fixes NixOS#6481

When the home directory is on a separate mount the user home directories were not created.

Using systemd units with RequiresMountsFor solves the race condition.

@jsoo1 jsoo1 force-pushed the jsoo1/user-home-dirs branch from 7676535 to b09ce20 Compare March 30, 2023 16:55
@jsoo1 jsoo1 marked this pull request as ready for review March 30, 2023 17:04
@jsoo1 jsoo1 requested review from bacchanalia and ixmatus March 30, 2023 17:04
@jsoo1 jsoo1 force-pushed the jsoo1/user-home-dirs branch from b09ce20 to cb97e43 Compare March 30, 2023 22:01
Fixes NixOS#6481

When the home directory is on a separate mount the user home
directories were not created.

Using systemd tmpfiles solves the race condition.
@jsoo1 jsoo1 force-pushed the jsoo1/user-home-dirs branch from cb97e43 to 8b59d84 Compare March 30, 2023 22:03
@jsoo1
Copy link
Collaborator Author

jsoo1 commented Apr 10, 2023

We don't use 21.05 anymore.

@jsoo1 jsoo1 closed this Apr 10, 2023
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.

Creating home happens before /home is mounted
1 participant