Bugzilla – Bug 1172057
Autofs with mounted CIFS shares --> systemd shutdown hangs
Last modified: 2020-08-24 14:06:48 UTC
Hi there, I use autofs on Tumbleweed to mount two CIFS shares on a local NAS. This causes systemd to hang for 3 minutes on every shutdown. I even set `timeout = 5` in /etc/autofs.conf, but it doesn't help. There was apparently a similar issue in the past when NFS shares were automounted, but this was supposedly fixed: https://bugs.archlinux.org/task/40200 I confirm on Tumbleweed that the supplied autofs.service contains these lines: ----------- After=network.target ypbind.service sssd.service network-online.target remote-fs.target rpc-statd.service rpcbind.service Wants=network-online.target rpc-statd.service rpcbind.service -----------
Other relevant reports and supposed fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59152 https://cgit.freedesktop.org/systemd/systemd/commit/?id=7700945 https://bugs.archlinux.org/task/35671 https://bbs.archlinux.org/viewtopic.php?id=162236
Created attachment 838115 [details] enabled systemd units
Created attachment 838116 [details] critical chain
Created attachment 838117 [details] journalctl bootup
Created attachment 838118 [details] shutdown screenshot #1
Created attachment 838119 [details] shutdown screenshot #2
For some reason the `\\192.198.1.6 Cancelling wait for...` thing started working after about ten seconds. Much better than 3 minutes, but still clunky.