]> code.ossystems Code Review - openembedded-core.git/commit
systemd-systemctl-native: handle Install wildcards
authorBrad Bishop <bradleyb@fuzziesquirrel.com>
Tue, 6 Nov 2018 00:23:07 +0000 (19:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jan 2019 16:56:33 +0000 (16:56 +0000)
commitaee9c2c28bf8d90f2bd30834b6d9f51141837338
tree824d1cce7fb6ce384030acc9edaec03f4b536e8a
parent7800f42e94fefb1644664384f569af0df87cc721
systemd-systemctl-native: handle Install wildcards

Handle the %i wildcard appearing in a dependency in the Install section
of a template unit, e.g.

  $ cat foo@.service

  [Install]
  WantedBy=bar@%i.target

Using the real systemctl something like:

  $ systemctl enable foo@baz.service

will create a symlink in /etc/systemd/system/bar@baz.target.wants.
Detect wildcards in templates and make the appropriate substitution.

(From OE-Core rev: 22ed19292d160461042d4a2294fe2ec0b953873e)

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/systemd/systemd-systemctl/systemctl