Summary: | net-wireless/wpa_supplicant: systemd units have incomplete dependencies causing early termination on shutdown | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | walt <wsheets> |
Component: | Current packages | Assignee: | Rick Farina (Zero_Chaos) <zerochaos> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | systemd, zerochaos |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://lists.shmoo.com/pipermail/hostap/2015-August/033521.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch against hostap git master
Patch with typos fixed |
Description
walt
2015-03-23 21:56:36 UTC
I've witnessed this too... seems to cause similar issues with LDAP setups too. Despite my best efforts, I can't seem to add anything to the units to prevent this. BTW, still happens with systemd-224-r1, nothing specific about 219. Someone at Redhat *must* have seen this before, the scenario is not that uncommon. Been awhile since I looked at the Fedora unit files. Maybe a clue there... What software are you all using to manage your network/wifi connections? NetworkManager for me. I have wpa_supplicant@wlan0, systemd-networkd, systemd-networkd-wait-online services enabled (not networkmanager). (In reply to walt from comment #5) > I have wpa_supplicant@wlan0, systemd-networkd, systemd-networkd-wait-online > services enabled (not networkmanager). In your case, I think it is because wpa_supplicant@wlan0.service is not ordered before network.target. Can you try adding the following to the [Unit] section of /usr/lib/systemd/wpa_supplicant@.service? Before=network.target Wants=network.target Also, please try adding the NFS share to fstab if it is not there already; this will cause systemd to generate a mount unit for it with the necessary dependencies. Great work, Mike :) Adding the network.target fixed the problem. A thousand thanks for this bugfix and all the hard work you do for gentoo. (In reply to Dan Goodliffe from comment #4) > NetworkManager for me. Would you mind filing a separate bug? I would like to close this one out once I fix the wpa_supplicant unit(s). Will do... thought it was the same problem because it only started when I switched to systemd... no matter. Thanks. Created attachment 408832 [details, diff]
Patch against hostap git master
Here is my proposed solution.
Created attachment 408834 [details, diff]
Patch with typos fixed
Sent a patch upstream (see URL). This has been applied upstream. gurligebis: I see you seem to be maintaining some mini patchsets. Can you backport this or tell me how you would like it to be done? Haven't had time to get my dev machine git-ified yet. Just put the patch inside the files directory, and epatch it in, in an bumped -r release :) |