Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-14 | nspawn: flush out environment block of the -a stub init process | Lennart Poettering | |
The container detection code in virt.c we ship checks for /proc/1/environ, looking for "container=" in it. Let's make sure our "-a" init stub exposes that correctly. Without this "systemd-detect-virt" run in a "-a" container won't detect that it is being run in a container. | |||
2016-02-03 | nspawn: optionally run a stub init process as PID 1 | Lennart Poettering | |
This adds a new switch --as-pid2, which allows running commands as PID 2, while a stub init process is run as PID 1. This is useful in order to run arbitrary commands in a container, as PID1's semantics are different from all other processes regarding reaping of unknown children or signal handling. |