wpa_supplicant: start after wireless interfaces
wpa_supplicant fails to start if the wireless interfaces aren't ready yet,
so we need to add a system ordering directive here to start wpa_supplicant
after the interfaces are ready. Note that Requires= is not enough since
it does not imply ordering.
commit519673e7145ea1e54afc54bc501b53bab226c94b
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>
dateThu 16 Jun 2016, 00:18 (10 years ago)
parent41d523a
nixos/modules/services/networking/wpa_supplicant.nix+1−1
@@ -129,7 +129,7 @@ in {
129129 in {
130130 description = "WPA Supplicant";
131131
132− after = [ "network-interfaces.target" ];
132+ after = [ "network-interfaces.target" ] ++ lib.concatMap deviceUnit ifaces;
133133 requires = lib.concatMap deviceUnit ifaces;
134134 wantedBy = [ "network.target" ];
135135