<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Hang on shutdown because wpa_supplicant is stopped before that umount a _netdev mount point"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86707">86707</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Hang on shutdown because wpa_supplicant is stopped before that umount a _netdev mount point
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>javibarroso@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=110009" name="attach_110009" title="Add network-online.target as dependency to _netdev mount points">attachment 110009</a> <a href="attachment.cgi?id=110009&action=edit" title="Add network-online.target as dependency to _netdev mount points">[details]</a></span>
Add network-online.target as dependency to _netdev mount points

Hello,

I was having trouble with a curlftpfs mount point [1], that did not umount at
shutdown.

Debugging the issue (at Debian did not work
/usr/lib/systemd/system-shutdown/debug.sh hack, but yes the crash shell console
at tty9):

[  473.352374] systemd[1]: mnt-usb.mount changed mounted -> unmounting
[  473.356270] systemd[1]: wpa_supplicant.service changed running ->
stop-sigterm
[  473.387815] systemd[1]: Failed to send unit change signal for
wpa_supplicant.service: Transport endpoint is not connected
[  473.387847] systemd[1]: Failed to send unit change signal for mnt-usb.mount:
Transport endpoint is not connected
[  473.703928] systemd[1]: Child 1564 (wpa_supplicant) died (code=exited,
status=0/SUCCESS)

/mnt/usb is the mount point which is failing to umount (it is the router usb
mounted on my laptop)

I'm not sure if curlftpfs should do some thing better when it tries to umount
when there is not connection..

To solve this issue I modified fstab-generator to add "After and Requires"
depends to "network-online.target" to .mount units which are network mounts.
I'm attaching the patch

What do you think is the best solution for my problem ?

Thank you

[1] <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769186">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769186</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>