Re: [PATCH] wpa_supplicant: Changed systemd template units

Richard Purdie
2019-02-05T21:52:15Z

On Tue, 2019-02-05 at 11:26 -0500, Joshua DeWeese wrote:
> From: Joshua DeWeese <jdeweese@hennypenny.com>
>
> https://www.freedesktop.org/software/systemd/man/systemd.unit.html#WantedBy=
>
> When building root filesystems with any of the wpa_supplicant systemd
> template service files enabled (current default is to have them
> disabled) the
> systemd-native-fake script would not process the line:
>
> Alias=multi-user.target.wants/wpa_supplicant@%i.service
>
> appropriately due the the use of "%i."
>
> According to the systemd documentation "WantedBy=foo.service in a
> service
> bar.service is mostly equivalent to
> Alias=foo.service.wants/bar.service in
> the same file." However, this is not really the intended purpose of
> install
> Aliases.
>
> All lines of the form:
>
> Alias=multi-user.target.wants/*%i.service
>
> Were replaced with the following lines:
>
> WantedBy=multi-user.target
>
> Signed-off-by: Joshua DeWeese <jdeweese@hennypenny.com>

This patch doesn't seem to apply against master (which has 2.6, not
2.5)?

Cheers,

Richard