]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd-systemctl: support instance expansion in WantedBy
authorIan Ray <ian.ray@ge.com>
Sun, 11 Jun 2023 18:17:47 +0000 (21:17 +0300)
committerSteve Sakoman <steve@sakoman.com>
Mon, 19 Jun 2023 16:23:31 +0000 (06:23 -1000)
commit2aa82324d43467e7c8bfbbb59570ee3306264b75
tree2a02df7bfad47163e2d34d649a06218ff79a02be
parent2751472807edc6d2ccc93b6339e6dc57d4abb2da
systemd-systemctl: support instance expansion in WantedBy

Refactor _process_deps to expand systemd instance specifier "%i" to the
template instance.

This change expands on prior commit e510222b57 ("systemd-systemctl: fix
instance template WantedBy symlink construction") by substituting every
"%i" pattern-match with the instance name.

The regexp handles the following cases:

* svc-wants@%i.service

* sys-subsystem-net-devices-%i.device

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 9356276137267a29ae2289d796a2940918375308)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/systemd/systemd-systemctl/systemctl