]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/dbus-execute.c
core: allow specifiers to be resolved in Environment= passed over dbus (#6144)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Jun 2017 09:26:59 +0000 (05:26 -0400)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 09:26:59 +0000 (11:26 +0200)
commitf900f5825d97249fce78636a2527de03ad529182
tree2543468b9006e1206c4fc95f00ae25f46831b339
parent92369d5eeaa7dce0e99353ddadba2b0f63784e42
core: allow specifiers to be resolved in Environment= passed over dbus (#6144)

When specifiers are included in the Environment block in StartTransientUnit,
we resolve specifiers on the PID1 side. Nevertheless we store the unresolved
version in the transient unit file, so that it'll be resolved when loading
the unit. I think this looks nicer.

I also removed the writing of the merged Environment block to the transient
file. Afaict, this resulted in variables being written multiple times, but
this needs to be tested properly.

Fixes #5699.
src/core/dbus-execute.c