Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
you can recompile the kernel yourself and only include what you need/want at the configure stage.
I'd not heard of "boss linux" before, but a quick search shows that it is derived from Debian. So, you can follow the standard Debian procedure using make-kpkg from the kernel-package package.
See for example: http://debian-handbook.info/browse/s...mpilation.html
and/or the documentation that comes with kernel-package.
The Linux kernel is not terribly 'large' to begin with ... but you can reduce the size of the thing and also improve startup time either by removing unneeded packages or by configuring the kernel to omit unnecessary modules. (For example, an early Red Hat distro had a driver for a DecSystem token-ring network card and actually tested for its presence every time you booted up.) Distros are "designed to start-up on everything, with minimal understanding from their owners," which of course is precisely what many people do want. But they can, if you so choose, be put onto a very considerable diet...
Looking at my Fedora system, and I suspect Ubuntu is similar - the kernel itself is relatively small (4.6M) compared to the standard initramfs file (14.8M). Recreating the initramfs file using only those modules required to boot my system dropped its size by about 69%. I'd go for the low-hanging fruit first.
You can even eliminate the initramfs process altogether, if you put your mind to it. Determine what drivers are actually needed for your actual hardware, then construct a kernel having only those drivers ... built-in for resident devices; loadable modules for USB. "initramfs" is mostly used to fuel the dynamic device-discovery process. The question is how much do your really care.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.