When there are NFS shares mounted over a wireless network, systemd shuts the wireless interface down *before* unmounting the NFS shares, causing the umount command to hang and thus the machine won't shut down. Reproducible: Always Steps to Reproduce: 1. Mount an NFS share on a wireless machine 2. systemctl poweroff (or reboot) Actual Results: After tearing down wlan0, systemd spawns a process to wait for the umount command to succeed, but it never succeeds because the NFS server can't be reached over the wireless network.
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 :)