nixos-container: runInContainer to enter all namespaces
for compatibility with nspawn --private-users=
This commit is contained in:
parent
c8f83ec641
commit
a0d86441b5
@ -364,7 +364,7 @@ sub restartContainer {
|
||||
sub runInContainer {
|
||||
my @args = @_;
|
||||
my $leader = getLeader;
|
||||
exec($nsenter, "-t", $leader, "-m", "-u", "-i", "-n", "-p", "--", @args);
|
||||
exec($nsenter, "--all", "-t", $leader, "--", @args);
|
||||
die "cannot run ‘nsenter’: $!\n";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user