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
This of course causes iwd to prematurely terminate, causing my NFS unmount hangs
Mar 11 16:40:54 x360 iwd: D-Bus disconnected, quitting...
Mar 11 16:40:54 x360 iwd: Removing scan context for wdev 2
Mar 11 16:40:54 x360 systemd: 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: dbus.service: Succeeded.
Mar 11 16:40:54 x360 systemd: Stopped D-Bus System Message Bus.
Mar 11 16:40:54 x360 audit: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295
msg='unit=dbus comm="systemd" e>
Mar 11 16:40:54 x360 systemd: Unmounting /mnt/fast...
Mar 11 16:40:54 x360 systemd-networkd: wlan0: Link DOWN
Mar 11 16:42:24 x360 systemd: mnt-fast.mount: Unmounting timed out. Terminating.
Mar 11 16:42:24 x360 systemd: mnt-fast.mount: Mount process exited, code=killed,
Mar 11 16:42:24 x360 systemd: 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
Show replies by date