[digg-me]Many Linux newbies think that kernel recompilation is inherent and almost necessary thing to do after OS is just installed or some time later. By the following advices I would try to show these fellows in which situations this really makes sense and what to do if one persists đ
1. If you donât know why you should patch/recompile kernel â DO NOT DO THIS.
2. If your running kernel is smart and supports all necessary hardware, technologies and doesnât contain critical vulnerabilities â DO NOT REBUILD IT.
3. If you donât know what are kernel patches and why they are used â DO NOT REBUILD KERNEL.
4. If kernel with needed functionality is available as binary package for your distribution (especially in official repositories) â DO NOT BUILD KERNEL.
5. If you insist, certainly read Kernel HOWTO and notes about kernel recompilation in regards to your distribution.
6. Do change kernel config values only if you know what they mean.
7. Donât forget to build initrd before rebooting your system.
8. Do not remove workable kernel and make it default in boot loader menu (like grub).
9. Donât panic if something goes wrong â most probably the same situation happened to thousands people earlier. But sometimes shit happens.
10. Rebuilding procedure usually takes hours depending on hardware you use. BE PATIENT! đ
11 (thanks to Erek Dyskant). Use your distroâs package management system to build kernels whenever possible (like make-kpkg in Debian or rpmbuild in Fedora/RedHat/CentOS)
I really hope this helps and pretty sure youâll build your âperfectâ kernel once đ
Any further advices are WELCOME!
P.S. Thanks to Stas Kogut for encouraging me to write this post.
good points…
RE: #10
my kernels build in about 10 minutes, of course i have saved my .config from the previous build and just load it with menuconfig but i still look through it for any changes, and if i don't build support & features for hardware i don't have, and filesystem support (ext3) is built in to the kernel itself making an initrd unnecessary most of the rest is built as modules…