"a stop job is running" for samba unmount

I tried to replicate the problem today on a Vero 2.

I can’t replicate it with WiFi for NFS or Samba shares.

I think it may be a timing issue. If anyone wants to try:

Edit /lib/systemd/system/connman.service (make a backup).

Replace the contents of the file with this:

[Unit]
DefaultDependencies=false
Conflicts=shutdown.target
RequiresMountsFor=/var/lib/connman
After=dbus.service network-pre.target systemd-sysusers.service
Before=network.target multi-user.target shutdown.target
Wants=network.target

[Service]
Type=dbus
BusName=net.connman
EnvironmentFile=-/etc/connman.prefs
Restart=always
RestartSec=5
ExecStart = /usr/bin/start-network
ExecStopPost = /bin/sleep 2
StandardOutput=null

[Install]
WantedBy=multi-user.target

And reboot.