Bizarre dracut bug "installkernel failed in module zfs"

Hi folks

I have been getting this bizarre dracut bug for the past day or two when installing kernels:

dracut: installkernel failed in module zfs

This happens on the LTS kernel, Zen kernel and mainline linux kernel. I use EXT4 for my root and home partitions and /efi partition is FAT32 so I have no idea why the ZFS kernel module is even a thing.

I use systemd boot. Any idea what the matter is?

Can you share cat /etc/dracut.conf.d/*

omit_dracutmodules+=" network cifs nfs nbd brltty "
compress="zstd"
add_dracutmodules+=" resume "

There you go. Thanks!

Can you share the full output from dracut?

I added “zfs” to “omit_dracutmodules+=” and it seems to have fixed it. It is installing the kernels as normal now.

1 Like

That means it was detecting zfs for some reason.

Previous output was:

:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Running kernel-install...
:: kernel-install installing kernel 6.7.2-zen1-1-zen
dracut: Executing: /usr/bin/dracut --no-hostonly --force /efi/ca02aa71b8de4ad687d22b58a8db7b5a/6.7.2-zen1-1-zen/initrd-fallback 6.7.2-zen1-1-zen
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: zfs ***
dracut-install: Failed to find module 'zfs'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.zcjZ1z/initramfs --kerneldir /lib/modules/6.7.2-zen1-1-zen/ -m zfs
dracut: installkernel failed in module zfs
/usr/lib/kernel/install.d/50-dracut-fallback.install failed with exit status 1.
(4/6) Refreshing PackageKit...
(5/6) Check if user should be informed about rebooting after certain system package upgrades.
(6/6) Checking which packages need to be rebuilt

I am definitely not using ZFS and I can’t find any example of anyone else using a different file system being presented with this error.

Again, adding ZFS to the ignored modules list seems to have fixed the error.

Further update: booted into the linux-zen kernel and all seems to be working fine.

Thanks a million @dalto for helping me find a quick fix!

1 Like

What does lsblk -o name,fstype show? Any zfs members?

Nope, no ZFS to be found.

NAME        FSTYPE
sda         
├─sda1      
└─sda2      ntfs
sdb         
└─sdb1      vfat
nvme0n1     
├─nvme0n1p1 vfat
├─nvme0n1p2 ext4
├─nvme0n1p3 swap
└─nvme0n1p4 ext4

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.