diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-09-21 18:53:45 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-09-22 18:12:52 +0200 |
commit | 5cd8ae31527384dcdbd1e9d2c7e7cd3a803222f8 (patch) | |
tree | 28e011446573dec5d2293bf27e402f3b22a605eb /rules/70-joystick.rules | |
parent | 7a7ec2bf71b146aaa217732d2ad029e730ffb3cd (diff) | |
download | systemd-5cd8ae31527384dcdbd1e9d2c7e7cd3a803222f8.tar.gz |
install: only consider names in Alias= as "enabling"
When a unit has a symlink that makes an alias in the filesystem,
but that name is not specified in [Install], it is confusing
is the unit is shown as "enabled". Look only for names specified
in Alias=.
Fixes #6338.
v2:
- Fix indentation.
- Fix checking for normal enablement, when the symlink name is the same as the
unit name. This case wasn't handled properly in v1.
v3:
- Rework the patch to also handle templates properly:
A template templ@.service with DefaultInstance=foo will be considered
enabled only when templ@foo.service symlink is found. Symlinks with
other instance names do not count, which matches the logic for aliases
to normal units. Tests are updated.
Diffstat (limited to 'rules/70-joystick.rules')
0 files changed, 0 insertions, 0 deletions