Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Adding Modules To Genkernel Initramfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
duane
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 132
Location: Oklahoma City

PostPosted: Mon Mar 16, 2020 8:24 pm    Post subject: [Solved] Adding Modules To Genkernel Initramfs Reply with quote

Is there a way to add a few extra modules to the genkernel initramfs from the genkernel command line (or elsewhere)? Specifically, I wanted the cd and hfs filesystems. I've gone through the documentation, but I haven't found anything but the option to add all modules. To date, I've just been building them into the kernel.

Last edited by duane on Tue Mar 17, 2020 9:36 am; edited 1 time in total
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 447

PostPosted: Tue Mar 17, 2020 4:50 am    Post subject: Re: Adding Modules To Genkernel Initramfs Reply with quote

duane wrote:
Is there a way to add a few extra modules to the genkernel initramfs from the genkernel command line (or elsewhere)? Specifically, I wanted the cd and hfs filesystems. I've gone through the documentation, but I haven't found anything but the option to add all modules. To date, I've just been building them into the kernel.

Inside your "/etc/genkernel.conf" there is on option "AMODULES_${group}" for this. Like:
Code:
AMODULES_SCSI="my_cd_scsi_module1 my_cd_scsi_module2"
AMODULES_FS="hfs"

You can see all modules that genkernel will use and get the groups from "/usr/share/genkernel/defaults/modules_load"
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
Back to top
View user's profile Send private message
axl
l33t
l33t


Joined: 11 Oct 2002
Posts: 910
Location: Romania

PostPosted: Tue Mar 17, 2020 5:28 am    Post subject: Reply with quote

an environment without modules... uhm... much easier to handle. you can just include things in kernel and deal with them there. who needs modules anyway? in a highly specialized task... there are no modules.
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 447

PostPosted: Tue Mar 17, 2020 5:41 am    Post subject: Reply with quote

axl wrote:
an environment without modules... uhm... much easier to handle. you can just include things in kernel and deal with them there. who needs modules anyway? in a highly specialized task... there are no modules.

I have the same opinion. If we are going to use it anyway, then it should be included inside the kernel.
That said, modules are still quite useful in cases where we have several implementations for the same hardware. As in the case of alsa and oss4 modules, which we have to unload one first, to then load the other (making easy the change, without having to recompile).
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
Back to top
View user's profile Send private message
duane
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 132
Location: Oklahoma City

PostPosted: Tue Mar 17, 2020 9:35 am    Post subject: Reply with quote

axl wrote:
who needs modules anyway?


This is for a livecd/usb.

ff11 wrote:
Inside your "/etc/genkernel.conf" there is on option "AMODULES_${group}" for this.


Thanks. I either forgot to look there or missed it.
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 447

PostPosted: Tue Mar 17, 2020 11:37 am    Post subject: Reply with quote

duane wrote:
...
This is for a livecd/usb.
...

Then i recommend you to use lz4 compression too, inside your "/etc/genkernel.conf" with:
Code:
COMPRESS_INITRD_TYPE="lz4"

It will improve your boot time, and it's fast to compress too.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum