OSDN Git Service

upg
[joborun/jobcore.git] / wpa_supplicant / wpa_supplicant_service_ignore-on-isolate.patch
1 From: Mathieu Trudel-Lapierre <cyphermox@ubuntu.com>
2 Date: Mon, 13 Mar 2017 13:46:12 -0400
3 Subject: Add IgnoreOnIsolate=yes to keep wpa-supplicant running while
4  systemctl isolate
5
6 > Add IgnoreOnIsolate=yes so that when switching "runlevels" in
7 > oem-config will not kill off wpa and cause wireless to be
8 > unavailable on first boot. (LP: #1576024)
9
10 Also happens when running systemctl isolate default.target:
11
12 > NM should be detecting that wpasupplicant is not running and start
13 > it -- this should already have been working by way of wpasupplicant
14 > being dbus-activated.
15 [...]
16 > It seems to me like IgnoreOnIsolate for wpasupplicant would be the
17 > right thing to do, or to figure out why it isn't being properly
18 > started when NM tries to use it.
19
20 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1576024
21 ---
22  wpa_supplicant/systemd/wpa_supplicant.service.in | 1 +
23  1 file changed, 1 insertion(+)
24
25 diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.in b/wpa_supplicant/systemd/wpa_supplicant.service.in
26 index bc0688a..561ae8f 100644
27 --- a/wpa_supplicant/systemd/wpa_supplicant.service.in
28 +++ b/wpa_supplicant/systemd/wpa_supplicant.service.in
29 @@ -3,6 +3,7 @@ Description=WPA supplicant
30  Before=network.target
31  After=dbus.service
32  Wants=network.target
33 +IgnoreOnIsolate=true
34  
35  [Service]
36  Type=dbus