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

Suspicious-looking gc profiles root in NixOS 18.03 #45626

Open
Ekdohibs opened this issue Aug 25, 2018 · 4 comments
Open

Suspicious-looking gc profiles root in NixOS 18.03 #45626

Ekdohibs opened this issue Aug 25, 2018 · 4 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@Ekdohibs
Copy link

Issue description

I installed NixOS 18.03 from a live USB stick on Jun 12, following the manual. When I look at /nix/var/nix/gcroots/profiles, it points to /mnt/nix/var/nix/profiles, which is very suspicious: presumably, this was the location of the profiles during the live USB installation, as per the manual, but is no longer.

$ ls -l /nix/var/nix/gcroots/profiles 
lrwxrwxrwx 1 root root 25 Jun 12 13:55 /nix/var/nix/gcroots/profiles -> /mnt/nix/var/nix/profiles

Shouldn't it be /nix/var/nix/profiles in the destination instead? If so, there might be a problem in the installation script of NixOS.

Steps to reproduce

Didn't try to reproduce, as that would mean installing NixOS again. I guess installing NixOS from a live USB, following the instructions from the manual, would trigger that problem.

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.51, NixOS, 18.03.132750.91b286c8935 (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(user): `""`
 - channels(root): `"nixos-18.03.132750.91b286c8935, unstable-18.09pre143771.a8c71037e04"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`
@xeji
Copy link
Contributor

xeji commented Aug 25, 2018

During the installation, did you use nixos-generate-config --root /mnt as documented?

If you omitted the --root /mnt some paths will incorrectly start with /mnt, resulting in a pretty much unusable system. Please paste your generated /etc/nixos/configuration.nix and hardware-configuration.nix if you still have them.

@Ekdohibs
Copy link
Author

Ekdohibs commented Aug 25, 2018

@xeji
Copy link
Contributor

xeji commented Aug 25, 2018

Configurations look normal. On my 18.03 system /nix/var/nix/gcroots/profiles doesn't exist. I have no idea what could have caused this. Maybe it disappears after garbage collecting the system? Worth a try.

@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

2 participants