All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph V Moss <jmoss@ecsmtp.pdx.intel.com>
To: "R.Gillman@nerc.ac.uk" <R.Gillman@nerc.ac.uk>
Cc: "autofs@linux.kernel.org" <autofs@linux.kernel.org>
Subject: Re: -Dvariable=value not working?
Date: Tue, 21 Sep 2010 15:35:07 -0700	[thread overview]
Message-ID: <28702.1285108507@ichips.intel.com> (raw)
In-Reply-To: Your message of "Wed, 28 Jul 2010 05:19:52 PDT." <4C502068.1070104@nerc.ac.uk>

> 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"

      parent reply	other threads:[~2010-09-21 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28 12:19 -Dvariable=value not working? Richard Gillman
2010-09-20  1:46 ` Ian Kent
2010-09-21 22:35 ` Joseph V Moss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28702.1285108507@ichips.intel.com \
    --to=jmoss@ecsmtp.pdx.intel.com \
    --cc=R.Gillman@nerc.ac.uk \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.