Revert "nixos-container: Use machinectl shell (#18825)"

This reverts commit
c37e76b4d2. Unfortunately, using
"machinectl shell" has two bad side effects:

* It sends the command's stderr to stdout.

* It doesn't propagate the command's exit status.

This broke NixOps.

PR #18825.
This commit is contained in:
Eelco Dolstra
2017-03-21 16:51:08 +01:00
parent 02129a8788
commit cb49c14324
2 changed files with 23 additions and 2 deletions
@@ -6,6 +6,8 @@ substituteAll {
isExecutable = true;
src = ./nixos-container.pl;
perl = "${perl}/bin/perl -I${perlPackages.FileSlurp}/lib/perl5/site_perl";
su = "${shadow.su}/bin/su";
inherit utillinux;
postInstall = ''
t=$out/etc/bash_completion.d