Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dracut wont rebuild initrd without --force
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
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 535
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Tue Apr 15, 2025 1:05 am    Post subject: dracut wont rebuild initrd without --force Reply with quote

I'm using the gentoo-kernel-bin and just added the zfs mods. Following the Wiki guide and they state use dracut and rebuild the initrd file but it tells me not going to happen without --force.

Anyhelp on this appreciated
_________________
AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory
Back to top
View user's profile Send private message
zen_desu
Apprentice
Apprentice


Joined: 25 Oct 2024
Posts: 253

PostPosted: Tue Apr 15, 2025 2:16 am    Post subject: Re: dracut wont rebuild initrd without --force Reply with quote

FastTurtle wrote:
I'm using the gentoo-kernel-bin and just added the zfs mods. Following the Wiki guide and they state use dracut and rebuild the initrd file but it tells me not going to happen without --force.

Anyhelp on this appreciated


This is probably related to the fact that the initramfs must be built after the kernel _and_ zfs kmods are installed.

I think initramfs generators should exit with code 77 if they are missing required kmods.

This may explain why forcing could be required, but you may not get far booting if --force is absolutely required to get an image built.
_________________
µgRD dev
Wiki writer
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 480
Location: Nijmegen

PostPosted: Tue Apr 15, 2025 6:37 am    Post subject: Reply with quote

Run "emerge --config gentoo-kernel-bin" instead of calling dracut manually. Or add the --force argument, as instructed by dracut.
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2157

PostPosted: Tue Apr 15, 2025 12:18 pm    Post subject: Reply with quote

dracut will refuse to build any initramfs when the target file already exists. --force overrides the existence check and allows overwriting.
Back to top
View user's profile Send private message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 535
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Tue Apr 15, 2025 6:27 pm    Post subject: Reply with quote

Sorry for the long wait but doning an
Code:
emerge -e world
rebuild to hopefully fix another issue

Nowa: so all I need to do is emerge --config gentoo-kernel-bin to rebuild the initrd file.

grknight: thanks for the explanation as to why dracut was pitching a fit and how the --force flag solves it.

I'll try the emerge --config gentoo-kernel-bin as that may be the better choice for now.
_________________
AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory
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