Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c37e76b4d2ac59139df8956cc2b1ec6921bea11d
      
https://github.com/NixOS/nixpkgs/commit/c37e76b4d2ac59139df8956cc2b1ec6921bea11d
  Author: Wilhelm Schuster <[email protected]>
  Date:   2016-09-24 (Sat, 24 Sep 2016)

  Changed paths:
    M pkgs/tools/virtualization/nixos-container/default.nix
    M pkgs/tools/virtualization/nixos-container/nixos-container.pl

  Log Message:
  -----------
  nixos-container: Use machinectl shell (#18825)

Using nsenter+su was suboptimal since the environment they provided was
not quite the same as the real container environment. See [1] for more
background.

Note that we directly invoke /bin/sh for `nixos-container root-login`
since setting the user's shell is quite complex. See [2] for a related
systemd issue.

[1]: https://github.com/systemd/systemd/issues/825#issuecomment-127917622
[2]: https://github.com/systemd/systemd/issues/1395


_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to