[Pkg-systemd-maintainers] Bug#725815: [systemd-sysv] CIFS-mounts in fstab with comment=x-systemd and automount delay shutdown
Michael Biebl
biebl at debian.org
Tue Oct 8 22:41:02 BST 2013
[please always CC the bug report]
Am 08.10.2013 22:07, schrieb Silvério Santos:
> Am Dienstag, 8. Oktober 2013, 19:52:07 schrieben Sie:
>> Am 08.10.2013 19:18, schrieb Silvério Santos:
>>> Package: systemd-sysv
>>> Version: 204-5
>>> Severity: normal
>>>
>>> --- Please enter the report below this line. ---
>>> The line in /etc/fstab is:
>>> //<IP-address>/<share> <mountpoint> cifs auto,comment=x-
>>> systemd.automount,comment=x-systemd.device-
>>> timeout=10,users,_netdev,credentials=<credentialsfile>,uid=<username>,gid=
>>> <group> 0 0
>>>
>>> The error message on system shutdown or reboot is:
>>> CIFS VFS: Server <IP-address> does not respond in 120 seconds.
>>> Reconnecting...
>>>
>>> Also the line above only creates the .mount-file, not the .automount-file
>>> in /run/systemd/generator/. Manually unmounting does not remount
>>> automatically.
>> There is a typo, the correct option is "comment=systemd.automount" or
>> alternatively x-systemd.automount.
>>
>> As for x-systemd.device-timeout=, you'll need to remove the "comment="
>> prefix, but it is possible that our util-linux is to old to parse that
>> syntax.
>
> Changed to "x-systemd.automount,x-systemd.device-timeout=10" and "x-
> systemd.automount" (without the timeout), but that
> lead to not mounting with errors in daemon.log like:
> mount [PID] message: mount error(22); Invalid argument
> mount [PID] Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
> systemd[1]: server-neu.mount mount process exited, code=exited status=32
> systemd[1]: Failed to mount /server/neu.
> systemd[1]: Unit server-neu.mount entered failed state.
>
> Although the syntaxes before were wrong in the end you were right with the
> typo, because "comment=systemd.automount" was successful, including automatic
> remounts on umount.
As I wrote, the "x-" syntax is not yet understood by mount/util-linux
2.20. This version is unfortunately quite outdated. TTBOMK you need at
least 2.21 for this to work. Atm you'll need to use the comment= syntax.
I.e. "comment=systemd.automount" and "comment=systemd.device-timeout="
Hopefully we will get a newer util-linux some time.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20131008/023072ab/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list