From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20041110 Firefox/1.0 Description of problem: on a multiple OS/arch environment where the served by a single NIS domain (not the best design but probably pretty common even when using LDAP based maps), the auto.master NIS map might be different per architecture (by automounting arch specific binaries and such) and therefore the posibility of being able to use a different map name for the auto.master on different servers without the need of changing the script on /etc/init.d/autofs (which will break further updates) might be recommended. attached a very simple patch applied directly to the /etc/init.d/autofs script which enables such functionality if defined through a variable named AUTOMASTERYPMAP to be definetd on /etc/sysconfig/autofs. a more polished patch would be recommended though, if the same map is also to be used consistently on the file/ldap sources or if the transformations trigered through UNDERSCORETODOT are to be generalized. will provide a better patch to apply to the vanilla sources/fedora cvs package which will integrate into the currently distributed RPMs if this proposed solution is considered worth it. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. try to get auto.master from a NIS domain where it is named diferently 2. change the scripts or create a static local file with the expected auto.master for that domain 3. wait until next package update or change on the auto.master breaks your setup Actual Results: agony Expected Results: joy Additional info:
Created attachment 108936 [details] patch to add $AUTOMASTERYPMAP to define the NIS map where the auto.master values is to be found applies to an already installed /etc/init.d/autofs script, not to be used on the SRPM
a simple solution which works with the current layout without any script changes is to use NIS "plus" map references, where the real value of the auto_master NIS map (assumed the name used for the map was auto_master_linux) is configured on /etc/auto.master as : echo "+auto_master_linux" > /etc/auto.master