[systemd-bugs] [Bug 86707] Hang on shutdown because wpa_supplicant is stopped before that umount a _netdev mount point

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 9 14:37:14 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86707

--- Comment #8 from Javi Barroso <javibarroso at gmail.com> ---

(In reply to Lennart Poettering from comment #3)
> _netdev mounts already get "network.target" dependency. However, as _netdev
> is a userspace option, this only works if the file systems are mounted from
> userspace.
> 
> My guess is that wpa_supplicant.service should really have a
> Before=network.target dependency. Does it have that on your system?

Hello,

At my (Debian Sid) system wpa_supplicant.service has not such depend.

Seems like at Debian wpa_supplicant.service is not changed from upstream:
http://w1.fi/cgit/hostap/tree/wpa_supplicant/systemd/wpa_supplicant.service.in

I tried to add Before attribute? so it can read:

$ systemctl cat  wpa_supplicant.service 
# /lib/systemd/system/wpa_supplicant.service
[Unit]
Description=WPA supplicant
Before=network.target

[Service]
Type=dbus
BusName=fi.epitest.hostap.WPASupplicant
ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

[Install]
WantedBy=multi-user.target
Alias=dbus-fi.epitest.hostap.WPASupplicant.service

But it didn't work.

I'm uploading files which I think can help to solve the issue.

At systemctl-status-booting.txt you can see two things:
 - curlftps is a dependency from NetworkManager-dispatcher.service
 - mnt-usb.mount fails the first try (see Process field at systemctl status -f
mnt-usb.mount) (Error Connecting to FTP)

At dmesg-booting.txt.gz can be seen dmesg after booting

Finally at halting.txt I try to summarize what happen when system is halting:
 - start umount /mnt/usb
 - wpa_supplicant deauthenticate
 - umount will not finish until it is killed by systemd after a timeout

I really appreciate your help. Please tell me if you need some additional info.

Thank you very much

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141209/c4c2b29e/attachment-0001.html>


More information about the systemd-bugs mailing list