Skip to contentSkip to conversation

No include of NIS maps in automounter maps possible any more?

DISCUSSION Frank Thommen 3 participants 5 messages Nov 30, 2006 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi,

I hope this question is not too basic for this list, but I could not find any answer in the list archives or through friend google.

With automount version 4.1.3-187 (running on CentOS 4.4) I could have an automounter map (not auto.master) to be like:

key1 host1:/path1
key2 host2:/path2
+map.in.nis

This way I could add specific local mounts to a generally available NIS map or override NIS given keys with my own ones.

With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. The additional map is simply ignored. I tried with '+map.in.nis' and '+yp:map.in.nis' to no avail.

'automount' in nsswitch.conf is on 'files nis' in both cases.

Is this a bug or a wanted feature in 4.1.4? Is there an other way to *combine* nis and local maps for automounting? We have configured a lot of hosts with above setup and whith the current OS-updates this starts to break.

Any hints or pointers are appreciated.

Thanks you very much

frank

#1 lore raw

==> On Thu, 30 Nov 2006 14:45:11 +0100, Frank Thommen <[email protected]> said:

Frank> Hi,
Frank> I hope this question is not too basic for this list, but I could not Frank> find any answer in the list archives or through friend google.

Frank> With automount version 4.1.3-187 (running on CentOS 4.4) I Frank> could have an automounter map (not auto.master) to be like:

Frank> key1 host1:/path1
Frank> key2 host2:/path2
Frank> +map.in.nis

Frank> This way I could add specific local mounts to a generally available NIS Frank> map or override NIS given keys with my own ones.

Frank> With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. Frank> The additional map is simply ignored. I tried with '+map.in.nis' and Frank> '+yp:map.in.nis' to no avail.

Frank> 'automount' in nsswitch.conf is on 'files nis' in both cases.

Frank> Is this a bug or a wanted feature in 4.1.4? We have Frank> configured a lot of hosts with above setup and whith the Frank> current OS-updates this starts to break.

I just posted some patches that implement this for 4.1.4. Ian's pretty busy with v5, so I'm not sure when they'll be included. For now, it's safe to rebuild your centos RPM on FC-5.

Frank> Is there an other way to *combine* nis and local maps for Frank> automounting? Any hints or pointers are appreciated.

Well, you could use the multi-map syntax. In auto.master, you would have something like the following:

/foo multi: file /etc/auto.foo -- yp map.in.nis

-Jeff

#2 lore raw

Hi Jeff,

Quoted 7 lines

Frank> Is there an other way to *combine* nis and local maps for Frank> automounting? Any hints or pointers are appreciated.

Well, you could use the multi-map syntax. In auto.master, you would have something like the following:

/foo multi: file /etc/auto.foo -- yp map.in.nis

Thanks. Great solution. It's pity the manpages don't mention it ;-)

frank

maintainer
#3 lore raw
In reply to Frank Thommen
Quoted 12 lines · Frank Thommen

Hi,

I hope this question is not too basic for this list, but I could not find any answer in the list archives or through friend google.

With automount version 4.1.3-187 (running on CentOS 4.4) I could have an automounter map (not auto.master) to be like:

key1 host1:/path1
key2 host2:/path2
+map.in.nis

Quoted 6 lines

This way I could add specific local mounts to a generally available NIS map or override NIS given keys with my own ones.

With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. The additional map is simply ignored. I tried with '+map.in.nis' and '+yp:map.in.nis' to no avail.

The Fedora autofs is very close to the upstream autofs and plus map inclusion and nsswitch integration is not present in version 4.

Jeff Moyer has done a lot of work on this and is working to push the RHEL autofs patches upstream now. However, I'm still neck deep in fixing version 5 bugs so it's a bit hard to get an update to version 4 out.

I think your only option at the moment is to use the RHEL or CentOS version and exclude autofs from yum updates.

Quoted 2 lines

'automount' in nsswitch.conf is on 'files nis' in both cases.

Doesn't matter what you put in nsswitch.conf.

Quoted 6 lines

Is this a bug or a wanted feature in 4.1.4? Is there an other way to *combine* nis and local maps for automounting? We have configured a lot of hosts with above setup and whith the current OS-updates this starts to break.

Focus is version 5 at the moment and plus map inclusion and nsswitch integration are standard features.

Quoted 2 lines

Any hints or pointers are appreciated.

Get FC6 if you want to try out version 5.

Quoted 10 lines

Thanks you very much

frank

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#4 lore raw

Hi Ian,

Quoted 4 lines
Quoted 1 line

[...]

Jeff Moyer has done a lot of work on this and is working to push the RHEL autofs patches upstream now. However, I'm still neck deep in fixing version 5 bugs so it's a bit hard to get an update to version 4 out.

No problem. The multi-map syntax as proposed by Jeff works perfectly and I'll stick with that for the time being.

Quoted 4 lines

[...]

Quoted 1 line

Any hints or pointers are appreciated.

Get FC6 if you want to try out version 5.

I'll first sleep over it ;-)

Thanks

frank