I have set up two directories mounted with automount (via LDAP):
in the /home directory automount is configured to mount
* -fstype=bind :/network/srv/home/&
in the /network directory one entry
srv -fstype=nfs4,rw,sec=sys,noatime,hard,intr,proto=tcp,timeo=100,port=2049 myserver:/
when i try to access the home directory of a user (e.g. ls /home/myuser), automount fails with the error message:
>> mount: special device /network/srv/home/myuser does not exist
failed to mount /home/myuser
when i do the 'bind mount' manually using
mount -o bind /network/srv/home/myuser /home/myuser
automount for /network/srv is triggered and the myuser home directory is successfully mounted to /home/myuser.
Any ideas how to tell automount to load the /network/srv before trying to mount /network/srv/home/myuser???