Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need help, how could i get the following features
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sergio21
n00b
n00b


Joined: 15 Oct 2006
Posts: 14

PostPosted: Wed Jan 03, 2007 10:16 pm    Post subject: need help, how could i get the following features Reply with quote

1. when kernel being boot, system itself create symbolyc link to the aprpriate kernel source tree.
2. how to each kernel have the apropriate config file systems, fo example autoloads module.
3. how to automatically reinstall kernel packages: alsa nvidia ipw3495

thks a lot
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed Jan 03, 2007 11:14 pm    Post subject: Reply with quote

Quote:
1. when kernel being boot, system itself create symbolyc link to the aprpriate kernel source tree.


Ok, if I understood you, you want /usr/src/linux to point to the source tree of the kernel you booted with? I'd use the "local" init script and a switch in bash that correlates uname -r with a particular directory. Each case then sets the symlink.

Quote:
2. how to each kernel have the apropriate config file systems, fo example autoloads module.


Same thing, but instead you'll be changing a symlink in /etc/modules.autoload.d. Normally you only have 2 files there: kernel-2.4 and kernel-2.6. However, if you're going to be switching among 2.6 kernels, make kernel-2.6 a symlink, then have it point to files in the same directory, each with a unique name for each kernel you have. Then just use the same switch statement for the /usr/src/linux link, and have each case set the modules.autoload.d symlink as well.

Quote:
3. how to automatically reinstall kernel packages: alsa nvidia ipw3495


Well, you could automate this with the module-rebuild package. Are you talking about rebuilding modules every time you switch kernels? If so, I'd just have a bunch of different directories in /lib/modules.
In any case, all of this would be a lot easier if you make sure each kernel has a unique version string.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum