Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278204 - linux-mod.eclass: generate_modulesd doesn't add '.conf' in the filename
Summary: linux-mod.eclass: generate_modulesd doesn't add '.conf' in the filename
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 274942
  Show dependency tree
 
Reported: 2009-07-17 20:40 UTC by samLT
Modified: 2009-07-25 09:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
diff -up linux-mod.eclass{.old,} (screen-exchange,711 bytes, patch)
2009-07-17 20:41 UTC, samLT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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,}