The way I used to test it:
echo "/test /etc/auto.test" >/etc/auto.master echo 'test1 ${MYPATH}' >/etc/auto.test echo 'OPTIONS="-DMYPATH=:/tmp"' >/etc/defaults/autofs service autofs restart automount -l debug /test
in the logs you'll see:
Jul 16 00:13:00 xxxx automount[7338]: attempting to mount entry /test/test1 Jul 16 00:13:00 xxxx automount[7338]: dev_ioctl_send_fail: token = 7 Jul 16 00:13:00 xxxx automount[7338]: failed to mount /test/test1
The way I used to test it:
echo "/test /etc/auto.test" >/etc/auto.master "-DMYPATH= :/tmp"' >/etc/defaults/ autofs
echo 'test1 ${MYPATH}' >/etc/auto.test
echo 'OPTIONS=
service autofs restart
automount -l debug /test
in the logs you'll see:
Jul 16 00:13:00 xxxx automount[7338]: attempting to mount entry /test/test1 send_fail: token = 7
Jul 16 00:13:00 xxxx automount[7338]: dev_ioctl_
Jul 16 00:13:00 xxxx automount[7338]: failed to mount /test/test1