Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
stuff linked to the kernel
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
kcy29581
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 284
Location: England

PostPosted: Mon Apr 04, 2005 5:13 pm    Post subject: stuff linked to the kernel Reply with quote

Hi all,

when I update the kernel, I need to remember to re-emerge stuff that was linked to the previous kernel (say, ALSA modules/drivers and stuff)

Is there a way for Gentoo/portage to tell me EVERYTHING I need to re-emerge after updating/installing a new kernel? Or do I have to rely on memory, or write everything down on paper?
_________________
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Apr 04, 2005 6:12 pm    Post subject: Reply with quote

Currently there's no automatic way to check for packages providing kernel modules, sorry.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Mon Apr 04, 2005 6:20 pm    Post subject: Reply with quote

hi
by update u mean
Code:
emerge -u gentoo-sources ?


that won't update your kernel, only kernel sources.
You have to compile then that new one.
Usually a plain copy of the .config of the old one is enough to get the new one compiled ok,
and that will do the modules you got linked (and inside) to the previous
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Apr 04, 2005 6:59 pm    Post subject: Reply with quote

No, kcy29581 doesn't mean that, he meant packages that place files in the current kernel's module directory.
Come to think of it, there is a semi-automatic way to do it. Make sure you've got the app-portage/gentoolkit package installed, and run
Code:
equery belongs /lib/modules/$(uname -r)
That will identify packages that have placed files under the module directory of the currently running kernel. You will have to provide the full path to the old kernel module directory if that's not what you want, such as /lib/modules/2.6.11-gentoo1 or whatnot.
You can't use qpkg to do this since qpkg doesn't handle directories. equery belongs does.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Mon Apr 04, 2005 7:43 pm    Post subject: Re: stuff linked to the kernel Reply with quote

oh, i see...
kcy29581 said
kcy29581 wrote:
when I update the kernel,

i taked as un update kernel version :)

sorry kcy29581 :oops:
Back to top
View user's profile Send private message
kcy29581
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 284
Location: England

PostPosted: Mon Apr 04, 2005 8:19 pm    Post subject: Reply with quote

Thanks for your replies all! Is this a feature that is under development right now, or is it just a wish?

RuiP, don't worry! I shoul've phrased it better! :wink:

moocha, thanks for your answer, thats a cool method!
_________________
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
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