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

Allways creating home directory even if nothing in copyToRoot #1422

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

chitter99
Copy link
Contributor

Fixes missing home directory when no copyToRoot.

{
  containers.example = {
    name = "example";
    startupCommand = "bash";
    copyToRoot = [ ];
  };
}

Previous error message

✦ ❯ docker run -it example
mkdir: cannot create directory '/env/.devenv': Permission denied
ln: failed to create symbolic link '/env/.devenv/profile': No such file or directory
ln: failed to create symbolic link '/env/.devenv/run': No such file or directory

@domenkozar domenkozar merged commit b92345f into cachix:main Sep 9, 2024
@domenkozar
Copy link
Member

I've reverted this in #1433 as it breaks container tests

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.

2 participants