diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-20 00:27:46 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-20 09:12:42 -0400 |
commit | 6e3136b209679d88c4347ce2f6d5e22c031e4d3e (patch) | |
tree | d9148b74b9236bca3e156238348abb5fe7204995 /src/journal/test-journal-init.c | |
parent | 5368222db6093195dbbd5fc7418508b154b1b769 (diff) |
shared/install: fix DefaultInstance expansion in %i
We should substitute DefaultInstance if the instance is not specified.
Test case:
[Install]
DefaultInstance=bond1
WantedBy= foobar-i-%i.device
$ systemctl --root=/ enable testing4@.service
Created symlink /etc/systemd/system/foobar-i-bond1.device.wants/testing4@bond1.service
→ /etc/systemd/system/testing4@.service.
(before, the symlink would be created as
/etc/systemd/system/foobar-i-.device.wants/testing4@bond1.service)
Fixes #4411.
Diffstat (limited to 'src/journal/test-journal-init.c')
0 files changed, 0 insertions, 0 deletions