NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.34k stars 13.58k forks source link

nix-info may misreport multi-userness #45591

Open lheckemann opened 6 years ago

lheckemann commented 6 years ago

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)

stale[bot] commented 4 years ago

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.
lheckemann commented 4 years ago

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

stale[bot] commented 3 years ago

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