Not trying very hard...
Add OMV_SAMBA_ZEROCONF_ENABLED="NO" to /etc/default/openmediavault
omv-salt stage run prepare
omv-salt deploy run avahi
I just freshly installed OMV5 (upgrade from OMV4 did not work for me).
But I'm struggling to see SMB shares via service discovery (avahi) on my linux machines. I'm not familiar with Salt so I just followed above instructions,. Avahi seems to be up and runnning correctly but no shares are exported. Something essential seems to be missing.
What would I have to check?