Skip to content
Commit 11d3f1c8 authored by Ian Ray's avatar Ian Ray Committed by Steve Sakoman
Browse files

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: default avatarIan Ray <ian.ray@ge.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 93562761)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 035b5d91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment