From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020916 Description of problem: i tried to mount /var/spool/mail with a direct map like shown in /usr/share/doc/autofs-4.1.1/README.direct but it seems that autofs uses only the first element of the path "/var" instead of the full path "/var/spool/mail" as the local mount point It starts up as: automount(pid30887) on /var type autofs (rw,fd=4,pgrp=30881,minproto=2,maxproto=4) but IMHO is should be: automount(pid30887) on /var/spool/mail type autofs (rw,fd=4,pgrp=30881,minproto=2,maxproto=4) my autofs ldap ldifs are attached below Version-Release number of selected component (if applicable): autofs-4.1.1-3 How reproducible: Always Steps to Reproduce: 1. create direct mount map in ldap 2. restart autofs Actual Results: overmounts /var Expected Results: should mount the remote dir into /var/spool/mail Additional info:
Created attachment 98731 [details] ldif of my autofs maps
Created attachment 98732 [details] second part of ldif above ldif was only the master, here comes auto.direct
To clarify, this problem isn't specific to LDAP maps. File maps also display this behaviour.
Okay, so this was a design decision (flaw?). This needs more documentation, but basically direct maps will take over the entire directory hierarchy to the root. I will update the documentation on this.
The documentation has been updated. See /usr/share/doc/autofs-x.y.z/README.direct. I'm closing the bug WONTFIX. This may be implemented this in the future, but for now we will have to live with the limitation.