My Arch linux laptop hangs 90 seconds during shutdown due to NFS client unmount timeouts.
Networking on this machine is WiFi only, controlled via iwd and systemd-networkd.
This is a day-one issue with iwd for me, and does not occur using wpa_supplicant.
Digging into the logs, I see dbus being spontaneously killed prior to iwd gracefully
disconnecting.
This of course causes iwd to prematurely terminate, causing my NFS unmount hangs
Mar 11 16:40:54 x360 iwd[465]: D-Bus disconnected, quitting...
Mar 11 16:40:54 x360 iwd[465]: Removing scan context for wdev 2
Mar 11 16:40:54 x360 systemd[1]: Stopping D-Bus System Message Bus...
Mar 11 16:40:54 x360 kernel: wlan0: deauthenticating from c6:**:1f:**:65:** by local
choice (Reason: 3=DEAUTH_LEAVING)
Mar 11 16:40:54 x360 systemd[1]: dbus.service: Succeeded.
Mar 11 16:40:54 x360 systemd[1]: Stopped D-Bus System Message Bus.
Mar 11 16:40:54 x360 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295
msg='unit=dbus comm="systemd" e>
Mar 11 16:40:54 x360 systemd[1]: Unmounting /mnt/fast...
Mar 11 16:40:54 x360 systemd-networkd[421]: wlan0: Link DOWN
...
Mar 11 16:42:24 x360 systemd[1]: mnt-fast.mount: Unmounting timed out. Terminating.
Mar 11 16:42:24 x360 systemd[1]: mnt-fast.mount: Mount process exited, code=killed,
status=15/TERM
Mar 11 16:42:24 x360 systemd[1]: mnt-fast.mount: Failed with result 'timeout'.
The supplied iwd.service file does not specifically state dbus as a dependency.
(It happens to work because dbus always started very early)
I have corrected my shutdown hang issue using the following override:
$ cat /etc/systemd/system/iwd.service.d/override.conf
[Unit]
BindsTo=dbus.service
After=dbus.service
Show replies by date