Hello.
I used to use fstab for nfs mounts, but now want to move them to autofs.
We have rhel and opensuse, and we need to bind directories depending on os, for example
/tools/local on rhel mounted with -bind to /tools/rhel
and
/tools/local on opensuse mounted with -bind to /tools/opensuse
But when I try to do it via autofs it fails on such bind mounting.
In /etc/auto.master
In /etc/auto.smi
Code:
/sw -rw 192.168.0.192:/sw
/sw/tools/local -rw 192.168.0.192:/sw/tools/rhel
And I also have tried to
Code:
/sw/tools/local -fstype=bind :/sw/tools/rhel
Any ideas how to achieve, that /tools/local contain appropriate content, depending on OS ?
Thanks!