-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wpa_supplicant] Missing dbus dependency in service file...? #138900
Comments
How many wireless interfaces have you configured? If you specify two or more, an equal number of services is started and dbus can't handle that. To put simple:
|
@rnhmjoj It seems the |
Ah, sorry, I assumed you were talking about
This changes how the wpa_supplicant service works in NixOS. It may solve your particular issue but is not needed in general. I need more details to figure out why it's failing. What does the journal ( |
Here are all service files for all combinations ( It seems if we specify the interfaces = [ "wlan0" ], the two extra line will appended: diff nixos-21.05-empty.service nixos-21.05-wlan0.service1a2
> After=sys-subsystem-net-devices-wlan0.device
3a5
> Requires=sys-subsystem-net-devices-wlan0.device
13c15
< ExecStart=/nix/store/cwniml0kdpghx2dlcjywi9d4lnwrxxlz-unit-script-wpa_supplicant-start/bin/wpa_supplicant-start
---
> ExecStart=/nix/store/4cvg6fkp9a1j1rvpg7y4bh96w77iq5pw-unit-script-wpa_supplicant-start/bin/wpa_supplicant-start diff nixos-unstable-empty.service nixos-unstable-wlan0.service1a2
> After=sys-subsystem-net-devices-wlan0.device
3c4,5
< Description=WPA Supplicant instance
---
> Description=WPA Supplicant instance for interface wlan0
> Requires=sys-subsystem-net-devices-wlan0.device
13c15
< ExecStart=/nix/store/0cpyx7x8zh75d8wh043nqvkck05wrx85-unit-script-wpa_supplicant-start/bin/wpa_supplicant-start
---
> ExecStart=/nix/store/siz9fn5mm9ms57pv9wazh94izx48lch8-unit-script-wpa_supplicant-wlan0-start/bin/wpa_supplicant-wlan0-start Next step I will try there 4 img and feedback |
That's really confused... What can I do next...? |
Uhm, this is suspicous: it looks like as if the service were masked. Why did you close the issue? |
I import aarch64-installer.nix to build rpi img, I think that's the reason wpa service masked... I just curious why wpa service not depends on dbus, but you have already answered. Thanks for helping again! |
Describe the bug
The wpa_supplicant.service file, generated by
networking.wireless
module.Seems it is missing dependency to dbus, so it cannot autostart on my rpi 4b.
The service will wait for the wlan0 interface, and it will start.
But from my test, the service does not start after the device unit is ready, and idk how to debug...
Then I added a config (
systemd.services."wpa_supplicant".serviceConfig = { "Type" = "dbus"; };
).It fixes this issue, but I think this maybe is a bug in the wireless module.
My question is why no dbus dependency in the wpa_supplicant service.
Or maybe the dependency is implicit? Or I'm wrong...?
Steps To Reproduce
Steps to reproduce the behavior:
networking.wireless.interfaces
, see:wpa_supplicant service fails at boot, but starts fine after boot (with systemctl start wpa_supplicant) #101963 (comment)
Expected behavior
wpa_supplicant should auto start, instead of
inactive (dead)
.Additional context
Here is systemd document: https://www.freedesktop.org/software/systemd/man/systemd.service.html.
It says Type = dbus will implicit dependency on dbus.socket.
Notify maintainers
@globin
Metadata
(I build the img via latest nixos-21.05 channel. )
Maintainer information:
The text was updated successfully, but these errors were encountered: