Bug 81529 - systemd x-systemd.device-timeout option breaks automount
Summary: systemd x-systemd.device-timeout option breaks automount
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-19 10:40 UTC by blondie85
Modified: 2014-08-31 04:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description blondie85 2014-07-19 10:40:39 UTC
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
user@192.168.1.101:/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 user@192.168.1.101:/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:
user@192.168.1.101:/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
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-08-31 04:50:12 UTC
This was fixed post-215: http://cgit.freedesktop.org/systemd/systemd/commit/?id=36a259d22c.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.