I am using automount to mount a set of network shares on my macbook. My problem is that when these shares are not available, e.g. when I am out of the office using a different network, I cannot login to my mac. The login screen progress bar stays stuck forever (I've let it go well over 12 hours to test).
Currently, my /etc/auto_master looks like
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
/- auto_smb -soft,noowners,nobrowse,rw
Network shares are mounted in the /etc/auto_smb map file, which looks like this:
/mount/mnt1 -fstype=smb ://<user>@<server>
/mount/mnt2 -fstype=smb ://<user>@<server>
/mount/mnt3 -fstype=smb ://<user>@<server>
/mount/mnt4 -fstype=smb ://<user>@c<server>
I am certain that automounter is the source of the problem, because if I comment out the last line of /etc/auto_master, I can log in normally no matter what network I am using.
Is there any way I can fix this so that automount fails gracefully on login when the mounts are not available?
I am using macOS Mojave 10.14.3