Bug 82086 - autofs init script only passes the timeout parameter to automount ignoring others
Bug#: 82086 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: robbat2@gentoo.org Reported By: p.gentoo@artistsonline.co.il
Component: Applications
URL: 
Summary: autofs init script only passes the timeout parameter to automount ignoring others
Keywords:  
Status Whiteboard: 
Opened: 2005-02-15 01:03 0000
Description:   Opened: 2005-02-15 01:03 0000
In the auto.master file you can specify parameters that should be passed to
automount. --timeout is passed correctly but other supported parameters aren't
(--ghost, --verbose).

Reproducible: Always
Steps to Reproduce:
1. Add --ghost on one of the lines in auto.master 
2. Run ls on the mount point specified in that line
3.

Actual Results:  
You will see an empty directory

Expected Results:  
You should see ghosted directories

I can see in the autofs initscript that it is hard coded to look for -t and
--timeout and pass them to automount. It should have a list of automount
parameters to look for

------- Comment #1 From Robin Johnson 2005-03-14 16:49:03 0000 -------
*** Bug 82692 has been marked as a duplicate of this bug. ***

------- Comment #2 From Robin Johnson 2005-03-14 16:49:25 0000 -------
I'm working on this still, but it's a pain to parse :-(.

------- Comment #3 From Robin Johnson 2005-03-14 20:22:32 0000 -------
Ok, this is fixed now.
I totally revamped the init script.
Now supports current daemon options.
Also cleanup all usage of unsafe sub-shells.
It also runs a lot faster ;-).

Please test it and report back. If it works out after 2 weeks, I'm going to mark 4.1.3-r4 stable.

4.1.4_beta2 is out, and has bundled a testing gentoo ebuild, and a different init script (looks to be based off one of the way older versions). I'll look at it later, and integrate it when 4.1.4 comes around, as 4.1.4 has some new features and things.

------- Comment #4 From Assaf Berg 2005-03-16 01:09:26 0000 -------
Seems to work. Lovely!