From: Lennart Poettering Date: Fri, 16 Oct 2020 16:22:37 +0000 (+0200) Subject: man: document that ConditionKernelCommandLine= looks at /proc/1/environ in containers X-Git-Tag: v247-rc1~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af4b8f8048e2d2da0b1a1a4927339cf39c62fb8a;p=thirdparty%2Fsystemd.git man: document that ConditionKernelCommandLine= looks at /proc/1/environ in containers Fixes: #16941 --- diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index f23c903d069..27035798bc2 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1207,7 +1207,10 @@ argument must either be a single word, or an assignment (i.e. two words, separated by =). In the former case the kernel command line is searched for the word appearing as is, or as left hand side of an assignment. In the latter case, the exact assignment is - looked for with right and left hand side matching. + looked for with right and left hand side matching. This operates on the kernel command line + communicated to userspace via /proc/cmdline, except when the service manager + is invoked as payload of a container manager, in which case the command line of PID + 1 is used instead (i.e. /proc/1/cmdline).