summaryrefslogtreecommitdiffstats
path: root/docs/CONTAINER_INTERFACE.md
diff options
context:
space:
mode:
authorArvid E. Picciani <aep@exys.org>2021-12-01 09:21:04 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-01 10:16:15 +0100
commit312dac28695ebe7c316c9b2dec40bc7182f5e28e (patch)
tree9979e49a0361e22e998a027f11d6f43a0a9d196e /docs/CONTAINER_INTERFACE.md
parentcore: add Condition[Memory/CPU/IO]Pressure (diff)
downloadsystemd-312dac28695ebe7c316c9b2dec40bc7182f5e28e.tar.xz
systemd-312dac28695ebe7c316c9b2dec40bc7182f5e28e.zip
docs: document that systemd closes console during normal runtime
fixes #21451 Signed-off-by: Arvid E. Picciani <aep@exys.org>
Diffstat (limited to 'docs/CONTAINER_INTERFACE.md')
-rw-r--r--docs/CONTAINER_INTERFACE.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/CONTAINER_INTERFACE.md b/docs/CONTAINER_INTERFACE.md
index 9ca991cab5..9ce4f64587 100644
--- a/docs/CONTAINER_INTERFACE.md
+++ b/docs/CONTAINER_INTERFACE.md
@@ -37,7 +37,10 @@ manager, please consider supporting the following interfaces.
in this context.)
3. Pre-mount `/dev/` as (container private) `tmpfs` for the container and bind
- mount some suitable TTY to `/dev/console`. Also, make sure to create device
+ mount some suitable TTY to `/dev/console`. If this is a pty, make sure to not
+ close the controling pty master during systemd's lifetime. PID1 will close ttys,
+ to avoid being killed by SAK. It only opens ttys for the time it
+ actually needs to print something. Also, make sure to create device
nodes for `/dev/null`, `/dev/zero`, `/dev/full`, `/dev/random`,
`/dev/urandom`, `/dev/tty`, `/dev/ptmx` in `/dev/`. It is not necessary to
create `/dev/fd` or `/dev/stdout`, as systemd will do that on its own. Make