-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
The result of (nixos-install && nixos-enter) lacks the /tmp directory #39140
Comments
That is pretty cool, how do you switch to the seed later? Is the seed mounted from a remote machine? |
@CMCDragonkai The seed is packed into a squashfs image which is transferred to the target system. Then a script is run which mounts the image, chroots into it, rsyncs the seed onto the target system's root, and finally chroots the second time into the root to run |
/tmp is normally created by the systemd-tmpfiles-setup systemd service at startup. Fixes NixOS#39140
For concreteness: A fix for this problem would cause this test to pass, or at least fail for a different reason. Currently this test fails with this output:
Adding It looks like |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
This issue is still relevant. |
Still a problem when just using |
This issue should be reopened as it is the root cause of other problems like #73404. The line added with the fix (#80769) of this issue seems to fail on many uses of |
Reopening based on reports above. |
Regarding my previous comment, I have confirmed that systemd-tmpfiles is indeed not in the PATH and one should not assume that it would be there. That is because the dependency of nixos-enter on systemd hasn't been declared in |
Fixed by #199425 |
Issue description
I have a process that creates a "clean" NixOS filesystem tree for later usage. First, I create the minimal NixOS configuration files at $ROOT/etc/nixos, then I run:
(Before 18.03, it worked without
nixos-enter
. I'm not very happy that now I need an additional step, and I'll probably create a separate issue about this. But I can understand thatnixos-install
creates a minimal installation andnixos-enter
activates it.)I expect to be able to chroot into the resulting filesystem tree and have a fully-working NixOS system. However, these steps don't create the
/tmp
directory, which preventsnixos-rebuild
from working:Steps to reproduce
Build the NixOS tree:
Then try to work in it:
Technical details
"x86_64-linux"
Linux 4.14.34, NixOS, 18.03.132021.c0c5571ec1a (Impala)
yes
no
nix-env (Nix) 2.0
""
"nixos-18.03.132021.c0c5571ec1a"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The text was updated successfully, but these errors were encountered: