Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you keep portage from removing old kernel modules?
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
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Wed Feb 15, 2006 1:49 am    Post subject: How do you keep portage from removing old kernel modules? Reply with quote

I want to be able to use several kernels and there are some modules built outside the kernel like ibm_apci and fglrx that portage will uninstall when I upgrade the kernel. That is, I can only have those modules built for one of my kernels and if I want to use another kernel, I can't use the modules. Is there any way to keep portage from uninstalling modules when you recompile 3rd party modules against a new kernel?
Back to top
View user's profile Send private message
mrBob
n00b
n00b


Joined: 03 Feb 2006
Posts: 65

PostPosted: Wed Feb 15, 2006 1:58 am    Post subject: Reply with quote

do you have

AUTOCLEAN="yes"

in /etc/make.conf??

You wouldn't want that disabled and, I believe, portage will not clean out unless you explicitly say so.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Wed Feb 15, 2006 2:41 am    Post subject: Reply with quote

mrBob wrote:
do you have

AUTOCLEAN="yes"

in /etc/make.conf??

You wouldn't want that disabled and, I believe, portage will not clean out unless you explicitly say so.

I thought that was just for the crap in, say, /var/tmp/portage? I'll give it a shot.
Back to top
View user's profile Send private message
mrBob
n00b
n00b


Joined: 03 Feb 2006
Posts: 65

PostPosted: Wed Feb 15, 2006 3:00 am    Post subject: Reply with quote

No, autoclean is definitely for cleaning out old versions of pkgs whenever you upgrade. Cleaning out /var/tmp/portage must be done manually, afaik. There is no way to make portage automagically clean out /var.
Back to top
View user's profile Send private message
mrBob
n00b
n00b


Joined: 03 Feb 2006
Posts: 65

PostPosted: Wed Feb 15, 2006 3:03 am    Post subject: Reply with quote

Alternatively, I don't see why you can't do this:

#AUTOCLEAN="no" emerge foo

Since you can pass such vars as ACCEPT_KEYWORDS and USE at the command line when emerging specific pkgs, I think you should give this a shot. That way, your system will always be cleaned after updating, but keep your kernel modules a manual updating endeavor, and prevent them on a per-instance basis from being cleaned.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Wed Feb 15, 2006 3:15 am    Post subject: Reply with quote

mrBob wrote:
No, autoclean is definitely for cleaning out old versions of pkgs whenever you upgrade. Cleaning out /var/tmp/portage must be done manually, afaik. There is no way to make portage automagically clean out /var.

Well I do that anyways. I just don't want portage to get rid of all my old modules that are already installed in /lib/modules. I want to be able to have multiple ibm_acpi modules, for example, one for each kernel. Portage always seems to uninstall the ones belonging to other kernels.
Back to top
View user's profile Send private message
i_hate_your_os
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2002
Posts: 128
Location: Manhattan Beach, CA

PostPosted: Fri Feb 17, 2006 7:52 am    Post subject: Reply with quote

You could add /lib/modules to CONFIG_PROTECT in make.conf I guess.
_________________
-IHYOS

"All laws which are repugnant to the constitution are null and void."
-Marbury vs. Madison, 5 US (2 Cranch) 137, 174, 176, (1803)
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Feb 17, 2006 4:14 pm    Post subject: Re: How do you keep portage from removing old kernel modules Reply with quote

widremann wrote:
I want to be able to use several kernels and there are some modules built outside the kernel like ibm_apci and fglrx that portage will uninstall when I upgrade the kernel.


that's not true. portage never deletes any modules from under /lib/modules.

that said:
you do have to remerge ati-drivers and whatever else every time you install a new kernel (or modify the configuration of an existing one)
you do have to keep /usr/src/linux (the symlink) up-to-date
you should probably consider cleaning out /lib/modules from time to time
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Fri Feb 17, 2006 5:00 pm    Post subject: Re: How do you keep portage from removing old kernel modules Reply with quote

widremann wrote:
I want to be able to use several kernels and there are some modules built outside the kernel like ibm_apci and fglrx that portage will uninstall when I upgrade the kernel. That is, I can only have those modules built for one of my kernels and if I want to use another kernel, I can't use the modules. Is there any way to keep portage from uninstalling modules when you recompile 3rd party modules against a new kernel?


1) set the linux link to point to the kernel you are building in /usr/src/
2) build and install the kernel and modules
3) emerge all the third party kernel modules you want that kernel to support
5) start at step 1 again until you finish building and installing all of your kernels
_________________
Gentoo: it's like wiping your ass with silk.
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