Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Build initramfs: genkernel vs dracut
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
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 451
Location: Hong Kong

PostPosted: Mon Mar 21, 2022 3:34 am    Post subject: Build initramfs: genkernel vs dracut Reply with quote

In my previous installations, I was using genkernel --install to build the initramfs, after manual kernel configuration.

https://web.archive.org/web/20220120060227/https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Optional:_Building_an_initramfs

Code:
genkernel --install --kernel-config=/path/to/used/kernel.config initramfs


However I just check the installation manual today, it changed to guide people to use dracut (I did not heard of it).

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Optional:_Building_an_initramfs

Code:
dracut --kver=4.9.16-gentoo


What are the differences? Are there any benefits over using genkernel?
_________________
- midnite.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2657

PostPosted: Mon Mar 21, 2022 9:54 am    Post subject: Reply with quote

I can only say that I was unable to produce working initramfs using genkernel for my laptop. I haven't investigated why. I just noticed that gentoo-kernel used dracut and was able to produce working initramfs which made my touchpad and everything work and I was able to do the same manually, using the same config I tried to make work with genkernel.

So in my subjective opionion, dracut seem to be smarted than genkernel.

Regards,
Georgi
Back to top
View user's profile Send private message
r7l
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2019
Posts: 93

PostPosted: Tue Apr 05, 2022 7:58 am    Post subject: Reply with quote

Generally speaking Genkernel does include the entire process of building a kernel and initramfs, while Dracut does only support building the initramfs.

Both of them work fine for what they are made for. I am using both and have barely any issues with them. To me, Genkernel is the superior product unless you want to have a nice boot up logo with Plymouth. This is the only thing where Dracut is actually better, as Genkernel does not support Plymouth. On the other hand, if you want to remotely unlock dm-crypt encrypted root partitions with SSH, Dracut will give you pretty hard time while Genkernel ships this out of the box.
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