]> code.ossystems Code Review - openembedded-core.git/commit
wpa_supplicant: Changed systemd template units
authorJoshua DeWeese <jdeweese@hennypenny.com>
Thu, 7 Feb 2019 15:03:02 +0000 (10:03 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Feb 2019 14:10:08 +0000 (14:10 +0000)
commit85f82e94849f1c1b5e150c2e38c03eae19a2b370
tree2cbbf4e4c691fed4d83ea1fd0cf9577300207e8a
parent06ffe905aa8a707cc4845e012ca555eeed5c0e50
wpa_supplicant: Changed systemd template units

I goofed up the scissor line on the last attempt. Not sure how much it matters,
but here it is correct this time.

Here it is, updated to work with wpa-supplicant_2.6.bb.

-- >8 --
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-replace-systemd-install-Alias-with-WantedBy.patch [new file with mode: 0644]
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb