View previous topic :: View next topic |
Author |
Message |
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Wed Feb 15, 2006 1:49 am Post subject: How do you keep portage from removing old kernel modules? |
|
|
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 |
|
|
mrBob n00b
Joined: 03 Feb 2006 Posts: 65
|
Posted: Wed Feb 15, 2006 1:58 am Post subject: |
|
|
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 |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Wed Feb 15, 2006 2:41 am Post subject: |
|
|
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 |
|
|
mrBob n00b
Joined: 03 Feb 2006 Posts: 65
|
Posted: Wed Feb 15, 2006 3:00 am Post subject: |
|
|
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 |
|
|
mrBob n00b
Joined: 03 Feb 2006 Posts: 65
|
Posted: Wed Feb 15, 2006 3:03 am Post subject: |
|
|
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 |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Wed Feb 15, 2006 3:15 am Post subject: |
|
|
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 |
|
|
i_hate_your_os Tux's lil' helper
Joined: 29 Aug 2002 Posts: 128 Location: Manhattan Beach, CA
|
Posted: Fri Feb 17, 2006 7:52 am Post subject: |
|
|
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 |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Fri Feb 17, 2006 4:14 pm Post subject: Re: How do you keep portage from removing old kernel modules |
|
|
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 |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Fri Feb 17, 2006 5:00 pm Post subject: Re: How do you keep portage from removing old kernel modules |
|
|
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 |
|
|
|