mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
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 (From OE-Core rev: 85f82e94849f1c1b5e150c2e38c03eae19a2b370) Signed-off-by: Joshua DeWeese <jdeweese@hennypenny.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
29099c8a49
commit
0964920f34
@@ -0,0 +1,52 @@
|
||||
From 94c401733a5a3d294cc412671166e6adfb409f53 Mon Sep 17 00:00:00 2001
|
||||
From: Joshua DeWeese <jdeweese@hennypenny.com>
|
||||
Date: Wed, 30 Jan 2019 16:19:47 -0500
|
||||
Subject: [PATCH] replace systemd install Alias with WantedBy
|
||||
|
||||
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.
|
||||
|
||||
Upstream-Status: Submitted [hostap@lists.infradead.org]
|
||||
|
||||
Signed-off-by: Joshua DeWeese <jdeweese@hennypenny.com>
|
||||
---
|
||||
wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in | 2 +-
|
||||
wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in | 2 +-
|
||||
wpa_supplicant/systemd/wpa_supplicant.service.arg.in | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
|
||||
index 03ac507..da69a87 100644
|
||||
--- a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
|
||||
+++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
|
||||
@@ -12,4 +12,4 @@ Type=simple
|
||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
|
||||
|
||||
[Install]
|
||||
-Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service
|
||||
+WantedBy=multi-user.target
|
||||
diff --git a/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
|
||||
index c8a744d..ca3054b 100644
|
||||
--- a/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
|
||||
+++ b/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
|
||||
@@ -12,4 +12,4 @@ Type=simple
|
||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
|
||||
|
||||
[Install]
|
||||
-Alias=multi-user.target.wants/wpa_supplicant-wired@%i.service
|
||||
+WantedBy=multi-user.target
|
||||
diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
|
||||
index 7788b38..55d2b9c 100644
|
||||
--- a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
|
||||
+++ b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
|
||||
@@ -12,4 +12,4 @@ Type=simple
|
||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
|
||||
|
||||
[Install]
|
||||
-Alias=multi-user.target.wants/wpa_supplicant@%i.service
|
||||
+WantedBy=multi-user.target
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -33,6 +33,7 @@ SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz \
|
||||
file://key-replay-cve-multiple7.patch \
|
||||
file://key-replay-cve-multiple8.patch \
|
||||
file://wpa_supplicant-CVE-2018-14526.patch \
|
||||
file://0001-replace-systemd-install-Alias-with-WantedBy.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "091569eb4440b7d7f2b4276dbfc03c3c"
|
||||
SRC_URI[sha256sum] = "b4936d34c4e6cdd44954beba74296d964bc2c9668ecaa5255e499636fe2b1450"
|
||||
|
||||
Reference in New Issue
Block a user