> I've got a Suse SLES 11 system running automount 5.0.3 which stubbornly
> refuses to variable substitution.
>
[...]
> I've got LOCAL_OPTIONS="-DNERCARCH=linux" in /etc/sysconfig/autofs (I've
> also tried "-D NERCARCH=linux", "-D NERCARCH='linux'").
[...]
> friesian:/etc/sysconfig # ps -ef|grep automount
>
> root 14378 1 0 11:12 ? 00:00:00 /usr/sbin/automount -p
> /var/run/automount.pid -O -DNERCARCH=linux
^^^^
The -O option is consuming the next arg and using '-DNERCARCH=linux'
as a mount option.
The SLES11 autofs init script uses $LOCAL_OPTIONS like this:
AUTOFS_OPTIONS="-O $LOCAL_OPTIONS $AUTOFS_OPTIONS"
So you need the beginning of your LOCAL_OPTIONS to be mount options.
After those, you can then do your variable assignments.
For example:
LOCAL_OPTIONS="tcp,hard,intr -DNERCARCH=linux"
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs