This repository was archived by the owner on Aug 27, 2018. It is now read-only.
stage-2-init: create /var/lib and /var/db at boot, so some modules that create user home folders here don't fail#262
Merged
peti merged 1 commit intoNixOS:masterfrom Sep 30, 2013
Conversation
…at create user home folders here don't fail
Contributor
Author
|
I think this should be merged before release, because it fixes quite some modules. |
Member
|
Perhaps home dir should be created with |
Contributor
Author
|
Yes, but what about permissions? Here we can change them as necessary if needed. I think this should still be merged and also home created with -p, this would be the best. I actually don't care which solution(or both), i just want to notice that this bug must be fixed. I personally created this one, because there's already a pull request that would be probably merged after release related to users and homes, and i don't want to patch old code. |
peti
added a commit
that referenced
this pull request
Sep 30, 2013
stage-2-init: create /var/lib and /var/db at boot, so some modules that create user home folders here don't fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It was pretty nasty bug, that was hard to spot. But as soon as i started doing vm tests i saw that happening.
For example lets say this module snippet from bacula (to show this is not related only with my modules):
There's no way this home will be created on boot, because when
useraddtries to create home/var/lib/does not yet exist.