View previous topic :: View next topic |
Author |
Message |
FastTurtle Guru

Joined: 03 Sep 2002 Posts: 535 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Tue Apr 15, 2025 1:05 am Post subject: dracut wont rebuild initrd without --force |
|
|
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 |
|
 |
zen_desu Apprentice

Joined: 25 Oct 2024 Posts: 253
|
Posted: Tue Apr 15, 2025 2:16 am Post subject: Re: dracut wont rebuild initrd without --force |
|
|
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 |
|
 |
Nowa Developer


Joined: 25 Jun 2014 Posts: 480 Location: Nijmegen
|
Posted: Tue Apr 15, 2025 6:37 am Post subject: |
|
|
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 |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2157
|
Posted: Tue Apr 15, 2025 12:18 pm Post subject: |
|
|
dracut will refuse to build any initramfs when the target file already exists. --force overrides the existence check and allows overwriting. |
|
Back to top |
|
 |
FastTurtle Guru

Joined: 03 Sep 2002 Posts: 535 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Tue Apr 15, 2025 6:27 pm Post subject: |
|
|
Sorry for the long wait but doning an
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 |
|
 |
|