I am using wildcards with autofs. I have multiple NFS server all with
unique exports list. Is it possible to get autofs to automount those dirs
w/o specifiing the dir name?
auto.master:
/hosts /etc/auto.hosts
auto.hosts:
* &:/blah
In the above example I had to specify "/blah" as the dir on the server. In
IRIX there is an option for "-hosts", which mounts ALL exported fs on the
host server. I need to do a similar think in Linux.
I was thinking of using the "program" automount options to create a script
that could use showmount to automatically mount them appropriately but
unfortunately I can't get that to work.
Can someone point me to sample files that use "executable maps".
I have tried doing something like this:
% automount /hosts program /etc/auto.mount.sh
% cat auto.mount.sh
#!/bin/sh
echo "blah -fstype=nfs blah:/dir"
I doubht that I am doing what the man pages are, the man pages seem a
little cryptic.
PS: The reason I am running it manuually via automount is the script
rc.d/init.d/autofs doesn't like the program keyword. Just doesn't work and
I don't really feel like looking at it to fix it.
Thanks.