Hi everyone,
I’ve recently noticed a change in Dracut’s behavior after updating or installing a new kernel. Previously, if a DKMS module failed to build, Dracut would log an error but still proceed with generating the initrd just without the failed module. However, now it seems that Dracut fails entirely when a DKMS module cannot be built, preventing the creation of the initrd.
My Setup & Issue
I use a ZFS-RAID DAS, and as many of you know, ZFS support often lags behind newer kernels. This was never an issue before because I had both an LTS kernel and the latest Zen kernel installed. The DKMS module would successfully build for the LTS kernel but fail for the Zen kernel. That was fine—I could boot into the LTS kernel for ZFS access and switch to Zen for gaming when needed.
However, since around the release of the 6.13 kernel (within the last couple of weeks), I’ve encountered a problem where all 6.13 kernels fail to build ZFS and do not generate an initrd at all. This makes the Zen kernel unbootable.
Currently, my boot menu still shows the Zen kernel entries, but since the initrd is missing, attempting to boot results in a kernel panic.
Questions
- Is there a way to restore the previous behavior, where Dracut would still create an initrd even if the DKMS build fails?
- As a workaround, is there a way to install
zfs-dkms
viayay
orpacman
while preventing an automatic module installation? That way, I could manually add the ZFS module only for the LTS kernel without affecting the Zen kernel.
I appreciate any insights or suggestions. Thanks in advance!