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

Bug 278204

Summary: linux-mod.eclass: generate_modulesd doesn't add '.conf' in the filename
Product: Gentoo Linux Reporter: samLT <samuel.lethiec>
Component: EclassesAssignee: Gentoo Kernel Miscellaneous <kernel-misc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 274942    
Attachments: diff -up linux-mod.eclass{.old,}

Description samLT 2009-07-17 20:40:40 UTC
Hello,

You'll find below a patch to the linux-mod.eclass so that the options files created by the function generate_modulesd for kernel 2.6 end with '.conf'

${currm_path//*\/} is ${modulename} so the following should be enough:
--- linux-mod.eclass.old        2009-07-17 22:26:18.216954125 +0200
+++ linux-mod.eclass    2009-07-17 22:28:12.707947371 +0200
@@ -503,10 +503,11 @@ generate_modulesd() {
                # then we install it
                if kernel_is ge 2 6; then
                        insinto /etc/modprobe.d
+                       newins ${module_config} ${currm_path//*\/}.conf
                else    
                        insinto /etc/modules.d
+                       newins ${module_config} ${currm_path//*\/}
                fi
-               newins ${module_config} ${currm_path//*\/}
                
                # and install any documentation we might have.
                [[ -n ${module_docs} ]] && dodoc ${module_docs}
Comment 1 samLT 2009-07-17 20:41:21 UTC
Created attachment 198359 [details, diff]
diff -up linux-mod.eclass{.old,}