FS#6936 - Autofs feature --ghost does not work

Attached to Project: Arch Linux
Opened by Arnold Miller (orbitrus) - Tuesday, 17 April 2007, 00:43 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 16 March 2009, 15:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Roman Kyrylych (Romashka)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

My network is handled by autofs, and I always use --ghost so I don't have to memorize locations or maintain a symlink system - I can just rsync from the main server when I need to update all the other clients.

The auto.master file reads:
[...]
/mnt/effigy /etc/autofs/auto.net.effigy --timeout=120 --ghost
[...]

And it works on all the computers except for my Arch laptop. In Arch, using --ghost or not having it at all makes no difference. There are no placeholder leafs in the tree.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 16 March 2009, 15:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  autofs 4.1.4-5
Comment by Arnold Miller (orbitrus) - Tuesday, 17 April 2007, 02:45 GMT
Patch.
Comment by Arnold Miller (orbitrus) - Tuesday, 17 April 2007, 04:04 GMT
Scratch that, why complicate the uncomplicated.
Comment by Dale Blount (dale) - Tuesday, 17 April 2007, 12:24 GMT
Scratch what? Scratch why?
Comment by Arnold Miller (orbitrus) - Tuesday, 17 April 2007, 21:33 GMT
Uh, the original patch I did complicated the initscript more than needed to be.
In the awk script under munge_options(), the daemon_opts variable was changed to daemon_complex_opts (took a name and a value) and daemon_simple_opts (took a name).

But then I realized the init script was smarter than I was, and changed to back, only modifying the END {} brace to include a for loop and a IF ~ /^$/

So, it was scratch the first patch, it was something I did quickly when I got bored.
I still think that the initscript should be able to handle multiple daemon options. Like ghost, so I don't have to use /etc/conf.d/autofs
Comment by Greg (dolby) - Sunday, 22 June 2008, 16:14 GMT
Would updating to autofs 5 solve this?
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 11:58 GMT
What's the status of this issue?
Comment by Giorgio Lando (patroclo7) - Tuesday, 09 December 2008, 08:22 GMT
The equivalent of ghost in autofs5 works fine for me, but note that I am not using networking abilities. I attach a tar.gz for it where all that stuff is actually disabled.
Comment by Andrea Scarpino (BaSh) - Sunday, 11 January 2009, 16:26 GMT
try autofs 5.0.4-1 in testing

Loading...