Skip to content

Commit a0d8644

Browse files
committed
nixos-container: runInContainer to enter all namespaces
for compatibility with nspawn --private-users=
1 parent c8f83ec commit a0d8644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/by-name/ni/nixos-container/nixos-container.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ sub restartContainer {
364364
sub runInContainer {
365365
my @args = @_;
366366
my $leader = getLeader;
367-
exec($nsenter, "-t", $leader, "-m", "-u", "-i", "-n", "-p", "--", @args);
367+
exec($nsenter, "--all", "-t", $leader, "--", @args);
368368
die "cannot run ‘nsenter’: $!\n";
369369
}
370370

0 commit comments

Comments
 (0)