re-read my post, and the original question. the original poster was testing using only the -D flag.
I said that automounter won't work with *just* the -D flag. it's needs a legitimate command like, and then the -D flag behaves as expected as a marp argument. -skottie "Murata, Dennis W (SAIC)" wrote: > > Not sure what you mean by add JUST the -D flag. We use autofs 4, i.e. > testcase, here is an example of a commandline: > > /usr/sbin/automount /nfs yp auto.nfs rw,hard,intr -DAPPSPORT=hoss140b > -DTSTAPPSPORT=hoss140b -DMAILPORT=hosm140a -DHPCTSTAPPSPORT=hoss141b > -DAPPOSNAME=Linux -DAPPOSVER=2.4 > > This seems to work just fine. What problems did you see? > > Wayne Murata > > -----Original Message----- > From: Scott Miller [mailto:skottie@;anim.dreamworks.com] > Sent: Thursday, November 14, 2002 2:15 PM > To: Andy Elmer > Cc: [EMAIL PROTECTED] > Subject: Re: [autofs] setting autofs variables > > autofs 3.1.7-21 supports the -D flag; we use it alot. > > your test case is broken. automounter can't run with JUST the -D > flag, it doesn't have enough arguments. try adding a -D flag to > an already-working coammand line and see what happens. > > note that -D arguments aren't correctly passed to child automounter > processes that get created as "submounts", which occur when you have > maps with "-fstype=autofs" in them. I have a patch in to redhat with > a work-around, and I'm hoping they will find a better fix and publish > an errata. > > -skottie > > Andy Elmer wrote: > > > > Hello, > > > > I was wondering if there was some way of setting the substitution > > variables in autofs to specific values? (example. OSREL=2.4 ). > > > > From the autofs.5 man page I saw the following regarding variable > > substitution: > > Additional entries can be defined with the -Dvariable=Value > > option to automount(8). > > > > However, the "automount" binary which comes with Redhat 7.3 doesn't > > seem to recognize the -D option. > > # automount -DOSREL=2.4 > > /usr/sbin/automount: Ambiguous or unknown options > > > > Am I doing something wrong, or is there another way of doing this? > > Thanks! > > > > Andy > > _______________________________________________ > > autofs mailing list > > [EMAIL PROTECTED] > > http://linux.kernel.org/mailman/listinfo/autofs > _______________________________________________ > autofs mailing list > [EMAIL PROTECTED] > http://linux.kernel.org/mailman/listinfo/autofs _______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs
