View previous topic :: View next topic |
Author |
Message |
jumi99 n00b
Joined: 13 Mar 2013 Posts: 8
|
Posted: Tue Aug 27, 2013 3:48 pm Post subject: list of kernel modules |
|
|
Hi
I would like to speed up booting of my Gentoo by specifying the list of kernel
modules. I use genkernel and I like that it detects all the required modules at
startup. On the other hand it seems to be unnecessary to detect all required
kernel modules every time when there are no hardware changes on my system.
I have the following plan. After booting the system with genkernel use lsmod to
produce the list of modules and then to put them into /etc/conf.d/modules in a
proper format. Unfortunately I don't know how to turn off autodetection of
modules by genkernel at boot time afterwards. Please tell me how can I do that.
Also please tell me if my plan seems to be not good for some reason.
Great thanks for help |
|
Back to top |
|
|
schorsch_76 Guru
Joined: 19 Jun 2012 Posts: 450
|
Posted: Tue Aug 27, 2013 4:53 pm Post subject: |
|
|
The best way would be to build a static kernel without modules. All stuff included. This requires manual configuration. An other option would be to use a seed from kernel-seeds.org and enable the modules you need. This reduces the modules which are scanned dramatically.
Bye
schorsch |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Aug 27, 2013 4:59 pm Post subject: |
|
|
I recommend you build a kernel using http://www.kernel-seeds.org/ for instructions and a kernel seed. You will not need an initramfs, which should take something like ~30 seconds off you boot up. At least I did when I switched several years ago with older hardware. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
TheLexx Tux's lil' helper
Joined: 04 Dec 2005 Posts: 137 Location: Austin Tx
|
Posted: Sat Aug 31, 2013 1:11 am Post subject: |
|
|
If you want to cut down on the number of modules in your /lib/module directory, you might look into using "make localmodconfig" the next time you compile your kernel. It will change your ".config" file for kernel building. You might also look into "make localyesconfig" if you want to just build the modules directly into the kernel. Be sure to read up on those commands before making changes to your kernel. I also recommend backing up your current kernel .config file. |
|
Back to top |
|
|
|