Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 545258

Summary: net-fs/autofs: mount.crypt is called with unknown flag "-s"
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: normal CC: net-fs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=171166
https://bugs.gentoo.org/show_bug.cgi?id=453778
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Do sloppy mount only for NFS

Description Stefan Huber 2015-04-01 18:32:38 UTC
The sloppy mount feature of autofs appends a "-s" flag to the mount command, but mount.crypt does not support this flag. The ebuild of autofs explicity enables this feature, which makes autofs to fail in combination with mount.crypt.

Bug #171166 and #453778 are related.

Reproducible: Always
Comment 1 Stefan Huber 2015-04-07 19:30:26 UTC
By the way mount.vboxsf has no support for -s, too. On bugs.debian.org, a recent patch was mentioned that was merged into openSUSE, but I have not looked at it yet:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773607

https://build.opensuse.org/package/view_file/home:mszeredi:branches:openSUSE:13.2:Update/autofs/autofs-5.1.0-dont-pass-sloppy-option-for-other-than-nfs-mounts.patch?expand=1
Comment 2 Stefan Huber 2015-04-18 13:40:12 UTC
Created attachment 401558 [details, diff]
Do sloppy mount only for NFS
Comment 3 Stefan Huber 2015-04-18 13:41:30 UTC
The patch applies to autofs-5.0.7-r4 and 5.1.0 (and presumable all versions inbetween) too.
Comment 4 Yixun Lan archtester gentoo-dev 2015-04-21 02:23:23 UTC
 
+*autofs-5.1.0-r1 (21 Apr 2015)
+*autofs-5.0.9-r1 (21 Apr 2015)
+*autofs-5.0.8-r2 (21 Apr 2015)
+*autofs-5.0.7-r5 (21 Apr 2015)
+
+  21 Apr 2015; Yixun Lan <dlan@gentoo.org> +autofs-5.0.7-r5.ebuild,
+  +autofs-5.0.8-r2.ebuild, +autofs-5.0.9-r1.ebuild, +autofs-5.1.0-r1.ebuild,
+  +files/autofs-5.0.7-sloppy-mount.patch:
+  fix sloopy mount option which break other than nfs, bug 545258


thanks for your report and patches!