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:28:46 -0400 |
commit | cfd559c9a8bc398ce03d604957fa31fbbcaef2ef (patch) | |
tree | 3de20bd1fad786554a73d9060c6f897a570e1a2e /man/systemd-mount.xml | |
parent | 6e3136b209679d88c4347ce2f6d5e22c031e4d3e (diff) |
shared/install: fix DefaultInstance expansion in %n, %N
We should substitute DefaultInstance if the instance is not specified.
Test case:
[Install]
DefaultInstance=bond1
WantedBy= foobar-n-%n.device
WantedBy= foobar-N-%N.device
$ systemctl --root=/ enable testing4@.service
Created symlink /etc/systemd/system/foobar-n-testing4@bond1.service.device.wants/testing4@bond1.service → /etc/systemd/system/testing4@.service.
Created symlink /etc/systemd/system/foobar-N-testing4@bond1.device.wants/testing4@bond1.service → /etc/systemd/system/testing4@.service.
(before, the symlink would be created with empty %n, %N parts).
Diffstat (limited to 'man/systemd-mount.xml')
0 files changed, 0 insertions, 0 deletions