diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-08-10 17:11:56 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-08-11 09:34:45 +0200 |
commit | 0d2a017986565f23a624bdd8b7b06a267b0676ef (patch) | |
tree | 24e9372fcb078818277c70d095da4136b98f1fd2 /man/systemd-nspawn.xml | |
parent | basic/env-util: add a mode where we pull in the variable value from environment (diff) | |
download | systemd-0d2a017986565f23a624bdd8b7b06a267b0676ef.tar.xz systemd-0d2a017986565f23a624bdd8b7b06a267b0676ef.zip |
nspawn: allow --setenv=FOO as equivalent to --setenv=FOO=$FOO
systemd-socket-activate has supported such a mode since
5e65c93a433447b15180249166f7b3944c3e6156. '--setenv=FOO=$FOO' is a fairly
common use in scripts, and it's nicer to do this automatically without worrying
about quoting and whatnot.
https://github.com/systemd/mkosi/pull/765 added the same to 'mkosi --environment='.
Diffstat (limited to 'man/systemd-nspawn.xml')
-rw-r--r-- | man/systemd-nspawn.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 3623ef015a..e84ac6ae42 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -527,14 +527,14 @@ </varlistentry> <varlistentry> - <term><option>-E <replaceable>NAME</replaceable>=<replaceable>VALUE</replaceable></option></term> - <term><option>--setenv=<replaceable>NAME</replaceable>=<replaceable>VALUE</replaceable></option></term> - - <listitem><para>Specifies an environment variable assignment - to pass to the init process in the container, in the format - <literal>NAME=VALUE</literal>. This may be used to override - the default variables or to set additional variables. This - parameter may be used more than once.</para></listitem> + <term><option>-E <replaceable>NAME</replaceable>[=<replaceable>VALUE</replaceable>]</option></term> + <term><option>--setenv=<replaceable>NAME</replaceable>[=<replaceable>VALUE</replaceable>]</option></term> + + <listitem><para>Specifies an environment variable to pass to the init process in the container. This + may be used to override the default variables or to set additional variables. It may be used more + than once to set multiple variables. When <literal>=</literal> and <replaceable>VALUE</replaceable> + are omitted, the value of the variable with the same name in the program environment will be used. + </para></listitem> </varlistentry> <varlistentry> |