Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17109 - different kernel support for /etc/init.d/modules
Summary: different kernel support for /etc/init.d/modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 18:29 UTC by nth
Modified: 2003-03-09 13:34 UTC (History)
1 user (show)

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


Attachments
/etc/modules.autoload support for kernel versions customization (patch,2.12 KB, patch)
2003-03-08 18:37 UTC, nth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nth 2003-03-08 18:29:24 UTC
I'm using kernel 2.5 every day and have some 2.4.20 as backup. 
 
  My concern is that /etc/init.d/modules can only handle a single /etc/modules.autoload, 
which is very bad since kernel 2.4 and 2.5 has several distinctions for module names  
and usage. 
 
  So i thought maybe it would be cool if for example, with kernel 2.4.20 : 
    - /etc/init.d/modules would load /etc/modules.autoload 
    - then /etc/modules.autoload-kernel-2.4 
    - then /etc/modules.autoload-kernel-2.4.20
Comment 1 nth 2003-03-08 18:37:00 UTC
Created attachment 9143 [details, diff]
/etc/modules.autoload support for kernel versions customization

  I'm no shell script expert, this patch is making your well-written
/etc/init.d/modules
rather ugly, but for kernel 2.4.20, it would load (in this order) :
  - /etc/modules.autoload
  - /etc/modules.autoload-kernel-2
  - /etc/modules.autoload-kernel-2.4
  - /etc/modules.autoload-kernel-2.4.20

  Hope it helps. For information, my email is y.lesaint@free.fr

PS: sorry if i have not attach this patch with my first report, but i could not
find any
attachment button.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-08 21:07:44 UTC
I do not like it.  What about an additional /etc/modules.auto/, and in
there you have files '2', '2.4', '2.5', etc ?
Comment 3 nth 2003-03-08 21:33:37 UTC
 
  Some possibilities for /etc/modules.autoload/kernel-2.4 and 
/etc/modules.autoload/kernel-2.5 would be great, yeah :) 
 
  And i don't like my patch either, just pointing out the fact that i need some 
mechanism to detect kernel version at boot time and then modprobe the 
associated modules i have defined. :p 
 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-08 21:43:20 UTC
Only issue I see with calling it /etc/modules.autoload/, is that you have a file
called that .. thus baselayout will have to move things around ...

Comment 5 nth 2003-03-08 21:59:17 UTC
 
  No doubt /etc/modules.auto/ is great to :p 
 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-09 05:01:18 UTC
Check baselayout-1.8.6.3
Comment 7 nth 2003-03-09 13:34:33 UTC
 
  baselayout-1.8.6.3 support for modules autoloading / kernel versions is 
great, thanks azarah :) 
 
  I'm just filling two more patches (good these ones ;) ) for 
/etc/init.d/{modules,net.eth0}