Skip to content

Fedora 43, ZFS 2.4.2 dracut build failsΒ #18527

Closed

Description

@Kaurin

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 43
Kernel Version 6.19.10-200.fc43.x86_64 -- build failing for 7.0.4-100.fc43.x86_64
Architecture x86_64
OpenZFS Version 2.4.2

Describe the problem you're observing

I am unable to dnf upgrade due to a dracut build failure:

[32/32] Removing libuutil3-0:2.4.1-1.fc43.x86_64                                                                                                                                                                                                                                      100% |   0.0   B/s |   5.0   B |  00m31s
>>> Running %posttrans scriptlet: kernel-core-0:7.0.4-100.fc43.x86_64                                                                                                                                                                                                                                                         
>>> Finished %posttrans scriptlet: kernel-core-0:7.0.4-100.fc43.x86_64                                                                                                                                                                                                                                                        
>>> Scriptlet output:                                                                                                                                                                                                                                                                                                         
>>> grub2-probe: error: ../grub-core/kern/fs.c:123:unknown filesystem.                                                                                                                                                                                                                                                        
>>>                                                                                                                                                                                                                                                                                                                           
>>> Error! Could not locate dkms.conf file.                                                                                                                                                                                                                                                                                   
>>> File: /var/lib/dkms/evdi/1.14.6/source/dkms.conf does not exist.                                                                                                                                                                                                                                                          
>>> dracut-install: Failed to find module 'zfs'                                                                                                                                                                                                                                                                               
>>> dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.dinQq73/initramfs --kerneldir /usr/lib/modules/7.0.4-100.fc43.x86_64 -m zfs                                                                                                                                                                         >>>                                                                                                                                                                                                                                                                                                                           
Complete!

Journalctl:

May 13 06:49:51 myhostname dracut[1304620]: *** Including module: kernel-modules-extra ***
May 13 06:49:51 myhostname dracut[1304620]:   kernel-modules-extra: configuration source "/run/depmod.d" does not exist
May 13 06:49:51 myhostname dracut[1304620]:   kernel-modules-extra: configuration source "/etc/depmod.d" is ignored (directory or doesn't exist)
May 13 06:49:51 myhostname dracut[1304620]:   kernel-modules-extra: configuration source "/lib/depmod.d" does not exist
May 13 06:49:51 myhostname dracut[1304620]: *** Including module: zfs ***
May 13 06:49:51 myhostname dracut[1304620]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ddhnn4f/initramfs --kerneldir /usr/lib/modules/7.0.4-100.fc43.x86_64 -m zfs

Packages:

$ rpm -qa | grep -E '\-2\.4\.1-|-2\.4\.2-'
Box2D-2.4.2-5.fc43.x86_64
libnvpair3-2.4.2-1.fc43.x86_64
libuutil3-2.4.2-1.fc43.x86_64
zfs-dkms-2.4.2-1.fc43.noarch
libzfs7-2.4.2-1.fc43.x86_64
libzpool7-2.4.2-1.fc43.x86_64
zfs-2.4.2-1.fc43.x86_64
zfs-dracut-2.4.2-1.fc43.noarch

$ sudo rpm -qa | grep kernel-core
kernel-core-6.19.10-200.fc43.x86_64
kernel-core-6.19.14-200.fc43.x86_64  ## I had the same issue on this kernel with 2.4.1, which is why I held back on 6.19.10-200
kernel-core-7.0.4-100.fc43.x86_64

DKMS install:

$ sudo dkms install -m zfs -v 2.4.2
Module zfs/2.4.2 already installed on kernel 6.19.10-200.fc43.x86_64 (x86_64), skip. You may override by specifying --force.
Executing post-transaction command....................(bad exit status: 1)
Failed command:
dracut --regenerate-all --force

I have pinned the working Kernel in ZFSBoot menu in case I need to reboot, but would appreciate the help:

$ zfs get all zroot/ROOT/fedora | grep zfs
zroot/ROOT/fedora  org.zfsbootmenu:commandline  nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off rhgb amdgpu.cik_support=1 radeon.cik_support=0  local
zroot/ROOT/fedora  org.zfsbootmenu:kernel       vmlinuz-6.19.10-200.fc43.x86_64$                                                                                     local
zroot/ROOT/fedora  org.zfsbootmenu:keysource    zroot/ROOT/fedora                                                                                                    inherited from zroot

Describe how to reproduce the problem

Unsure

Include any warning/errors/backtraces from the system logs

See above

Activity

  1. edgan commented on May 13, 2026

    @edgan

    Are you using zfs for the root filesystem?

  2. Kaurin commented on May 13, 2026

    @Kaurin
    Author

    Indeed, via ZFSBootMenu

  3. edgan commented on May 13, 2026

    @edgan

    Ah, that is why you are using zfs-dracut. I only use zfs for data storage.

  4. Kaurin commented on May 14, 2026

    @Kaurin
    Author

    Fingers crossed that a backport of #18526 fixes this problem.

  5. tonyhutter commented on May 14, 2026

    @tonyhutter
    Contributor

    @Kaurin I would be surprised if #18526 fixed this.

    Some basic things:

    Is zfs.ko somewhere in /usr/lib/modules/7.0.4-100.fc43.x86_64?

    Can you dig down as to why this is specifically failing? Maybe run dracut-install with --verbose or strace it?

    FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ddhnn4f/initramfs --kerneldir /usr/lib/modules/7.0.4-100.fc43.x86_64 -m zfs
    
  6. Kaurin commented on May 14, 2026

    @Kaurin
    Author

    Hi,

    Is zfs.ko somewhere in /usr/lib/modules/7.0.4-100.fc43.x86_64?

    find /usr/lib/modules/7.0.4-100.fc43.x86_64 -iname '*zfs*'
    <no output>
    

    Can you dig down as to why this is specifically failing? Maybe run dracut-install with --verbose or strace it?
    I don't run dracut-install manually. It is ran by dnf at some point. The temporary location is not available after the installer finishes:

    >>> Error! Could not locate dkms.conf file.                                                                                                 
    >>> File: /var/lib/dkms/evdi/1.14.6/source/dkms.conf does not exist.                                                                        
    >>> dracut-install: Failed to find module 'zfs'                                                                                             
    >>> dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.d93UTEi/initramfs --kerneldir /usr/lib/modules/7.0.6-100.fc43.x86_
    >>>                                                                                                                                         
    Complete!
    root@myhostname:~# ls /var/tmp/dracut.d93UTEi/initramfs
    ls: cannot access '/var/tmp/dracut.d93UTEi/initramfs': No such file or directory
    

    I will be switching to Ubuntu because of its native ZFS support and abandoning Fedora with ZFS root.

    This workstation needs a serious rework anyway.

    Closing this one out. Sorry for having raised this.

  7. Kaurin commented on Jun 30, 2026

    @Kaurin
    Author

    I was not able to switch yet, but the fix was as follows:

    # 7.0.13 kernel being the latest at the time of typing this
    sudo dkms install -m zfs -v 2.4.3 -k 7.0.13-100.fc43.x86_64
    sudo dracut --regenerate-all --force -v
    sudo dkms status
    zfs/2.4.3, 6.19.10-200.fc43.x86_64, x86_64: installed
    zfs/2.4.3, 7.0.13-100.fc43.x86_64, x86_64: installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions