Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Generate image of gentoo-kernel without rebuilding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 129

PostPosted: Tue Oct 29, 2024 2:18 am    Post subject: Generate image of gentoo-kernel without rebuilding Reply with quote

Hi, sys-kernel/gentoo-kernel makes maintenance kernel easier. Installing this package can e.g. create initramfs using dracut and UKI. Is there any clean way to invoke routines executed after the kernel is built? Does sys-kernel/gentoo-kernel support this scenario in any way?

Example, after installing gentoo-kernel, I decide that I would like to change the dracut configuration. I don't need to compile everything again. However, I would like everything that would take place after compilation to be executed (dracut, uki, etc.)
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3752
Location: Rasi, Finland

PostPosted: Tue Oct 29, 2024 11:36 am    Post subject: Reply with quote

Yes.
Code:
emerge --config sys-kernel/gentoo-kernel
... or if you have more than one version installled, then you need to specify the version of gentoo-kernel:
Code:
emerge --config =sys-kernel/gentoo-kernel-<version>

_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 129

PostPosted: Tue Oct 29, 2024 10:41 pm    Post subject: Reply with quote

@Zucca: Thank you. Exactly what I needed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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