LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Scrapping a kernel (https://www.linuxquestions.org/questions/linux-software-2/scrapping-a-kernel-71674/)

MadCactus 07-10-2003 06:40 PM

Scrapping a kernel
 
So while trying to understand the kernel building process I have created an abomination that must be totally erased. Is there a command like "make remove-kernel"?

I suppose its easy enough to delete the kernel image itself , system.map and initrd - but what about any other config files, and all the modules?

Does a kernel build scatter files all over the place? Is anything shared with previous kernel versions?

Pcghost 07-10-2003 06:52 PM

All the modules and configs are stored in /usr/src/linux-x.x.x
Once you remove that directory and the vmlinuz and initrd files, you have effectivly deleted the kernel. Be careful.

Tinkster 07-10-2003 06:53 PM

If you didn't change the version-number
(Extraversion) in the makefile the newly
compiled kernel uses the same module-
directory ...
/lib/modules/<version>.<patchlevel>.<sublevel>.<extraversion>
Other than that, the installation should
only include the bzImage and the System.map.

Cheers,
Tink

Pcghost 07-10-2003 07:04 PM

Doh! I totally forgot the modules aren't stored in the kernel directory. Good catch Tink..

MadCactus 07-10-2003 07:43 PM

Thanks!

The reason I was asking is there isn't (afaics) a modules directory for each kernel in /usr/X11R6/lib, just the one /modules dir.

But I am thinking this will not matter - the X modules + drivers will be the same for any kernel, just as long as you have the right module loaded for your video card, right?

Tinkster 07-10-2003 07:56 PM

Quote:

Originally posted by Pcghost
Doh! I totally forgot the modules aren't stored in the kernel directory. Good catch Tink..
Heh ... not really a catch ;) We more or less
posted at the same time, 36 seconds apart :}

Cheers,
Tink

Tinkster 07-10-2003 08:03 PM

Quote:

Originally posted by MadCactus
Thanks!

The reason I was asking is there isn't (afaics) a modules directory for each kernel in /usr/X11R6/lib, just the one /modules dir.

But I am thinking this will not matter - the X modules + drivers will be the same for any kernel, just as long as you have the right module loaded for your video card, right?

Well, let's say that in terms of AGP
and DRI there is interaction between
Kernel & X, and some cards use DRI
quite excessively...

Cheers,
Tink

MadCactus 07-11-2003 06:40 AM

Quote:

Well, let's say that in terms of AGP
and DRI there is interaction between
Kernel & X, and some cards use DRI
quite excessively...
Mine being a PCI nVidia card does not use DRI according to the status list, so (hopefully) that means I don't have to touch any X modules, right?


All times are GMT -5. The time now is 02:16 AM.