<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemd x-systemd.device-timeout option breaks automount"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81529">81529</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>systemd x-systemd.device-timeout option breaks automount
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>blondie85@mail.ru
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I try to set automount for sshfs.
The problem is if x-systemd.device-timeout=x is in the middle of option list in
fstab systemd automount is not working (can't mount that filesystem)

/etc/fstab
<a href="mailto:user@192.168.1.101">user@192.168.1.101</a>:/var/cache/pacman/pkg /var/cache/pacman/pkg fuse.sshfs
defaults,port=2222,allow_root,reconnect,_netdev,noauto,x-systemd.device-timeout=10,IdentityFile=/home/user/.ssh/sshfs/sshfs,UserKnownHostsFile=/home/user/.ssh/known_hosts,x-systemd.automount
0 0

systemctl status var-cache-pacman-pkg.mount
(...)
Process: 2490 ExecMount=/bin/mount -n <a href="mailto:user@192.168.1.101">user@192.168.1.101</a>:/var/cache/pacman/pkg
/var/cache/pacman/pkg -t fuse.sshfs -o
defaults,port=2222,allow_root,reconnect,_netdev,noautoIdentityFile=/home/user/.ssh/sshfs/sshfs,UserKnownHostsFile=/home/user/.ssh/known_hosts,x-systemd.automount
(code=exited, status=1/FAILURE)


^systemd can't parse it right, 'noautoIdentityFile' x-systemd.device-timeout
disappears and no comma


If I move x-systemd.device-timeout at the end of option list in /etc/fstab:
<a href="mailto:user@192.168.1.101">user@192.168.1.101</a>:/var/cache/pacman/pkg /var/cache/pacman/pkg fuse.sshfs
defaults,port=2222,allow_root,reconnect,_netdev,noauto,IdentityFile=/home/user/.ssh/sshfs/sshfs,UserKnownHostsFile=/home/user/.ssh/known_hosts,x-systemd.automount,x-systemd.device-timeout=10
0 0

everything is working fine


Archlinux
systemd 215-4</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>