Commit 798aa80
committed
nixos-enter: inherit parent PID namespace
Removes the creation of a new PID namespace during nixos-enter so that
systemd doesn't detect the child process as being in a "container". In
systemd v257, container detection slightly changed to check if the
process is a part of the root PID namespace (see https://github.com/systemd/systemd/blob/96c4d9d94d06c6c0a8b68be376505f8d8b5eba2b/src/basic/virt.c#L735).
Tooling such as `bootctl` will not perform certain actions if it detects
we are in a container, such as not populating EFI variables. This
results in broken systemd-boot VM tests.1 parent 46add74 commit 798aa80
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments