Shutdown takes a long time as of 2389

Does anyone know of a permanent fix for this?

I’m currently using a Raspberry Pi 3 running 3.512 attached to a local NAS.

I’ve been using Volumio for about 10 years, and this was fixed at one point, but seems to be reintroduced every few version releases.

During reboot/shutdown, while attempting to unmount the NAS, I get “A stop job is running for /mnt/NAS/MyNAS (xxx/1min 32s)”. Sometimes the message will toggle between “/mnt/NAS/MyNAS” and “Samba NMB”.

I can manually dismount the NAS (sudo umount -f /mnt/NAS/MyNAS) and it will shutdown/reboot without any delay.