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

Bug 245271

Summary: sys-apps/module-init-tools: modprobe parses .svn/ dirs in /etc/modprobe.d/
Product: Gentoo Linux Reporter: Philipp Riegger <bugs+gentoo>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: hkbst, root
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ignore hidden dirs fix

Description Philipp Riegger 2008-11-02 12:14:38 UTC
Since version 3.5 modprobe changed in a way that it breaks my setup. I organize /etc/ with svn and modprobe parses all files in /etc/modprobe.d/.svn which leads to lots and lots of warnings like "WARNING: /etc/modprobe.d/.svn/all-wcprops line 1: ignoring bad line starting with 'K'". I did not find a way to prevent it from looking in that directory. I also thought, /etc/modprobe.d is not used at all if /etc/modprobe.conf exists. Any help in gettign rid of those warnings is appreciated.
Comment 1 SpanKY gentoo-dev 2009-02-08 20:44:38 UTC
i dont think it's 3.5 that has changed.  i think it's just fall out of the transition from modules.d to modprobe.d.

ive added a fix to modprobe in module-init-tools-3.6 though ...
Comment 2 SpanKY gentoo-dev 2009-02-10 00:14:55 UTC
*** Bug 258375 has been marked as a duplicate of this bug. ***
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2009-03-04 20:58:59 UTC
*** Bug 261217 has been marked as a duplicate of this bug. ***
Comment 4 Terra 2009-03-27 23:11:28 UTC
Created attachment 186495 [details, diff]
Ignore hidden dirs fix
Comment 5 Terra 2009-03-27 23:14:05 UTC
**odd, went to add the patch file and on submit these comments were not added**

The proposed patch does not work as the full path is passed via filename:
e.g. /etc/modprobe.d/.svn  -or-  /etc/modules.d/.svn

I have attached an updated patch file that fixes the issue.
Comment 6 SpanKY gentoo-dev 2009-05-08 20:39:38 UTC
havent noticed any problems myself with .svn or .git dirs in /etc/modprobe.d/

at any rate, 3.7+ will only parse files ending in .conf, so this problem slowly "goes away" anyways