FS#12768 - [autofs] 5.0.4-1 unusable

Attached to Project: Arch Linux
Opened by Jakub Schmidtke (sjakub) - Monday, 12 January 2009, 21:39 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 06 August 2009, 00:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

autofs-5.0.4-1 is unusable - rc.d script is broken (or the package is missing something):
- rc script uses "/usr/bin/automuonter" - mUOnter
- Not only the spelling is probably wrong, this package doesn't contain any files in /usr/bin,
the only executable is /usr/sbin/automount
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 06 August 2009, 00:22 GMT
Reason for closing:  Works for me
Comment by Javeed Shaikh (syscrash) - Monday, 12 January 2009, 23:19 GMT
The rc.d script also completely ignores /etc/conf.d/autofs (which is installed by the autofs package).
Comment by Andrea Scarpino (BaSh) - Tuesday, 13 January 2009, 08:27 GMT
sorry, my fault I uploaded a wrong rc.d/autofs

please try if there're problems with testing/autofs-5.0.4-2
Comment by Tim Boundy (Gigaplex) - Tuesday, 13 January 2009, 11:33 GMT
The line

PID=`cat /var/run/autofs-running &> /dev/null`

in the 5.0.4-2 version is complete bogus - PID is always empty as the value is always piped to null. It should look something along the lines of

[ -f /var/run/autofs-running ] && PID=`cat /var/run/autofs-running`
Comment by Andrea Scarpino (BaSh) - Tuesday, 13 January 2009, 13:44 GMT
sorry, I'm not at home to fix this

try to fix the typo:
PID=`cat /var/run/autofs-running 2> /dev/null`
Comment by Jakub Schmidtke (sjakub) - Wednesday, 28 January 2009, 18:37 GMT
rc.d script works better now. But it still ignores /etc/autofs/auto.master.
Comment by JM (fijam) - Monday, 02 February 2009, 21:03 GMT
Hmm. I jumped into testing today and autofs does not work any more.

In daemon.log:
Feb 2 21:54:41 hp510 automount[6737]: failed to mount /media/autofs/remote
Feb 2 21:54:41 hp510 automount[6737]: cannot find mount method for filesystem fuse
Feb 2 21:54:41 hp510 automount[6738]: failed to mount /media/autofs/sda4
Feb 2 21:54:41 hp510 automount[6738]: cannot find mount method for filesystem auto

My relevant autofs file:
sda4 -fstype=auto,defaults,noatime,iocharset=utf8,uid=1000 :/dev/sda4
remote -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#someuser@somehost.org\:

Has the syntax changed? I do not think so. Can you reproduce it? If not, what could have gone wrong?

Comment by JM (fijam) - Monday, 09 February 2009, 14:32 GMT
Please disregard the previous comment, it was just a generic SNAFU situation. Essentially, it would appear that the rc.d script does not start automount for me. If I start it manually things just work.
Comment by Adrian C. (anrxc) - Friday, 20 February 2009, 21:28 GMT
I upgraded to this package dispite problems. I fixed the pid and now the init script stop function is working properly.
I also added the path to my master file in /etc/conf.d/autofs because of this bug report http://bugs.archlinux.org/task/12935

It works fine, and while I was at it I also added --debug to see under the hood - I mount dvd's, usb storage and many NFS shares with autofs and everything works ok with this upgrade.
Comment by Andrea Scarpino (BaSh) - Sunday, 26 April 2009, 14:31 GMT
I fixed PID and  FS#12935 
Should I consider this bug fixed in autofs-5.0.4-3?
Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:09 GMT
I don't see 5.0.4-3 in the repository (x86_64) yet
Comment by Andrea Scarpino (BaSh) - Sunday, 26 April 2009, 18:11 GMT
I built it only for i686, you should wait some hours...or you could try to build it yourself
Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:15 GMT
Hm, from where? ABS still contains version 5.0.4-2...
Comment by Andrea Scarpino (BaSh) - Sunday, 26 April 2009, 18:16 GMT Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:28 GMT
Did not work at first, because of unrecognized option in conf.d (--ghost, from previous version).
It could print some error messages, or at least say 'FAIL' instead of 'DONE' while starting.
conf.d file contains localoptions variable that doesn't do anything.
The rc script is still wrong. Why do you start automount in the background?
It doesn't make any sense, plus you don't get correct error code if something (like run options)
is wrong!
Have you tested it at all?
Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:31 GMT
Sorry for that :(
Comment by Andrea Scarpino (BaSh) - Sunday, 26 April 2009, 18:45 GMT
well...I should put a .install to say to remove --ghost option, so I can fix the daemon
what else?
Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:46 GMT
I have included corrected and working version of the package.
Fixed rc.d file, remvoed localoptions from conf.d file.
Also auto.master defaults were wrong and used non existing /etc/auto.media file - fixed that.
And removed auto.net - it didn't make sense, autofs doesn't include showmount. If it is external package,
I don't see one (maybe it's part os some other package)? If it is supposed to be provided by some other package, it should be in autofs' optdepends.
Comment by Jakub Schmidtke (sjakub) - Sunday, 26 April 2009, 18:47 GMT
Yes, .install file with that piece of information would be great! (But still, automount should not be started in the background)
Comment by Andrea Scarpino (BaSh) - Sunday, 26 April 2009, 19:02 GMT
thanks for your work.
I can't test it now. I made your changes in -4
Comment by Matt (v01d) - Wednesday, 13 May 2009, 22:45 GMT
Does auto.net work with autofs5? If it does, I don't understand why it was removed. In any case it could have been commented on auto.master, and (like you said) use an optdepend with 'nfs-utils' (provides showmount). Please include it again if possible, I don't want to list all my mount points by hand if it isn't necessary.
Comment by Dieter Plaetinck (Dieter_be) - Saturday, 13 June 2009, 13:18 GMT
Afaik auto.net is deprecated.
There is now an easier syntax, see man auto.master for '-hosts' or http://bbs.archlinux.org/viewtopic.php?id=71219
Comment by JM (fijam) - Wednesday, 05 August 2009, 21:40 GMT
WorksForMe

Loading...