[Bug 309618] New: autofs init script incorrectly identifies map type
https://bugzilla.novell.com/show_bug.cgi?id=309618 Summary: autofs init script incorrectly identifies map type Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: openSUSE 10.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: afericanbumcleaner@yahoo.com QAContact: qa@suse.de Found By: --- Software: autofs-4.1.4-62.3.i586.rpm Similar to https://bugzilla.novell.com/show_bug.cgi?id=289183 The problem is in the autofs init script when it tries to identify the map type. I'm trying to configure auto.master via NIS. Firstly I have to specify it as /home auto.home --timeout 600 for NIS, where as if I did it as /etc/auto.home it's written as /home yp auto.home --timeout 600 Why the difference? Because of this it causes a problem when you try and start autofs. I've got my NIS related files in /etc/NIS/{auto.{master,home},...} When I start autofs from within that directory it identifies the auto.home file and treats it as a file map which it isn't. Output of rcautofs status /usr/sbin/automount --timeout 600 /home file auto.home Though when you run the same command from somewhere that doesn't contain a auto.home file it outputs the correct command. /usr/sbin/automount --timeout 600 /home yp auto.home The problem is with the way the map type is identified in /etc/init.d/autofs in the getmounts_* functions. if [ -x $map ]; then echo "$DAEMON $daemonoptions $mountoptions $dir program $map $options $localoptions" elif [ -f $map ]; then echo "$DAEMON $daemonoptions $mountoptions $dir file $map $options $localoptions" else echo "$DAEMON $daemonoptions $mountoptions $dir yp $map $options $localoptions" fi It would be better if you could specify the map type in the NIS auto.master file like you can when it's done locally, as in /home yp auto.home --timeout 600 that would get around any confusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309618
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=309618#c1
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=309618#c2
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=309618#c3
--- Comment #3 from Homer Simpson
https://bugzilla.novell.com/show_bug.cgi?id=309618#c4
--- Comment #4 from Matthias Koenig
participants (1)
-
bugzilla_noreply@novell.com