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

nix-info may misreport multi-userness #45591

Open
lheckemann opened this issue Aug 24, 2018 · 3 comments
Open

nix-info may misreport multi-userness #45591

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

Comments

@lheckemann
Copy link
Member

Issue description

I don't know the exact circumstances leading to this, but it happens in a netbooted system:

$ nix-build '<nixpkgs/nixos>' --arg configuration '{ imports = [<nixpkgs/nixos/modules/installer/netboot/netboot.nix>]; users.users.root.password = "notsosecret"; }' -A config.system.build.kernel -A config.system.build.netbootIpxeScript -A config.system.build.netbootRamdisk
$ ln -s result/bzImage
$ ln -s result-2/netboot.ipxe
$ ln -s result-3/initrd
$ qemu-kvm -boot order=n -net nic,model=e1000 -net user,tftp=.,bootfile=netboot.ipxe -m 2G

then logging into the VM as root and running nix-info. This produces (amongst other things) multi-user?: no. However, this is nixos and certainly a multi-user nix!

This also occurs on my current unstable ("18.09pre149415.8395f9aa85e").

cc @grahamc

Technical details

(host system)

  • system: "x86_64-linux"
  • host os: Linux 4.14.55, NixOS, 18.03.133126.4df3426f5a5 (Impala)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.0.4
  • channels(root): "nixos-18.03.133126.4df3426f5a5, nixos-unstable-18.09pre140099.f53d22edd68"
  • channels(linus): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@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
@lheckemann
Copy link
Member Author

Maybe this is because root doesn't go through the daemon.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
@stale
Copy link

stale bot commented Dec 1, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 1, 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

1 participant