Failed to add dependency on unit: Unit initrd.target does not exist

In with regards to follow up on this: New options for dracut - #79 by dalto

Since it’s still happening to this day, I’m curious why, and is there ever going to end up being a fix for this?

It’s been a while on the matter but it’s still happening, and both the other posts about this have been closed with literally no actual resolution.

It is probably something else.

Can you share the full context so we can see which module is giving you the error?

Hmm. I’m looking back at my pacman.log on this specifically, and seeing this in a couple places:

[2025-09-25T21:21:14-0400] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 6.12.48-1-lts (x86_64)
[2025-09-25T21:21:14-0400] [ALPM-SCRIPTLET] Consult /var/lib/dkms/tflight4/1.0/build/make.log for more information.
[2025-09-25T21:21:14-0400] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod tflight4/1.0 -k 6.12.48-1-lts' exited 10
[2025-09-25T21:21:14-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod v4l2loopback/0.15.1 -k 6.16.9-1-cachyos
[2025-09-25T21:21:16-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod v4l2loopback/0.15.1 -k 6.16.8-arch3-1
[2025-09-25T21:21:19-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod openrazer-driver/3.10.3 -k 6.16.8-zen3-1-zen
[2025-09-25T21:21:27-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod vboxhost/7.2.2_OSE -k 6.12.48-1-lts
[2025-09-25T21:21:31-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod tflight4/1.0 -k 6.16.8-zen3-1-zen
[2025-09-25T21:21:31-0400] [ALPM-SCRIPTLET] Deprecated feature: CLEAN (/var/lib/dkms/tflight4/1.0/source/dkms.conf)
[2025-09-25T21:21:32-0400] [ALPM-SCRIPTLET] 
[2025-09-25T21:21:32-0400] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 6.16.8-zen3-1-zen (x86_64)
[2025-09-25T21:21:32-0400] [ALPM-SCRIPTLET] Consult /var/lib/dkms/tflight4/1.0/build/make.log for more information.
[2025-09-25T21:21:32-0400] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod tflight4/1.0 -k 6.16.8-zen3-1-zen' exited 10
[2025-09-25T21:21:32-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod openrazer-driver/3.10.3 -k 6.12.48-1-lts
[2025-09-25T21:21:39-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod vboxhost/7.2.2_OSE -k 6.16.8-zen3-1-zen
[2025-09-25T21:21:43-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod vboxhost/7.2.2_OSE -k 6.16.8-arch3-1
[2025-09-25T21:21:48-0400] [ALPM-SCRIPTLET] ==> depmod 6.16.9-1-cachyos
[2025-09-25T21:21:49-0400] [ALPM-SCRIPTLET] ==> depmod 6.16.8-arch3-1
[2025-09-25T21:21:51-0400] [ALPM-SCRIPTLET] ==> depmod 6.12.48-1-lts
[2025-09-25T21:21:51-0400] [ALPM-SCRIPTLET] ==> depmod 6.16.8-zen3-1-zen
[2025-09-25T21:21:52-0400] [ALPM] running '90-dracut-install.hook'...
[2025-09-25T21:21:53-0400] [ALPM-SCRIPTLET] :: Building initramfs for linux-lts (6.12.48-1-lts)
[2025-09-25T21:22:10-0400] [ALPM-SCRIPTLET] :: Building fallback initramfs for linux-lts (6.12.48-1-lts)
[2025-09-25T21:22:11-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:22:11-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:22:11-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:22:32-0400] [ALPM-SCRIPTLET] :: Building initramfs for linux (6.16.8-arch3-1)
[2025-09-25T21:22:49-0400] [ALPM-SCRIPTLET] :: Building fallback initramfs for linux (6.16.8-arch3-1)
[2025-09-25T21:22:50-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:22:50-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:22:50-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:23:09-0400] [ALPM-SCRIPTLET] :: Building initramfs for linux-zen (6.16.8-zen3-1-zen)
[2025-09-25T21:23:27-0400] [ALPM-SCRIPTLET] :: Building fallback initramfs for linux-zen (6.16.8-zen3-1-zen)
[2025-09-25T21:23:27-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:23:27-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:23:27-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:23:47-0400] [ALPM-SCRIPTLET] :: Building initramfs for linux-cachyos (6.16.9-1-cachyos)
[2025-09-25T21:24:04-0400] [ALPM-SCRIPTLET] :: Building fallback initramfs for linux-cachyos (6.16.9-1-cachyos)
[2025-09-25T21:24:05-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:24:05-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist
[2025-09-25T21:24:05-0400] [ALPM-SCRIPTLET] Failed to add dependency on unit: Unit initrd.target does not exist

And actually continuing on from that just a few more seemingly out of the blue:

[2025-09-25T21:24:24-0400] [ALPM] running 'code-marketplace.hook'...                                                                                                                         
[2025-09-25T21:24:24-0400] [ALPM] running 'dbus-reload.hook'...                                                                                                                              
[2025-09-25T21:24:24-0400] [ALPM] running 'detect-old-perl-modules.hook'...                                                                                                                  
[2025-09-25T21:24:25-0400] [ALPM] running 'eos-reboot-required.hook'...                                                                                                                      
[2025-09-25T21:24:26-0400] [ALPM] running 'ghc-register.hook'...                                                                                                                             
[2025-09-25T21:24:29-0400] [ALPM] running 'gio-querymodules.hook'...                                                                                                                         
[2025-09-25T21:24:29-0400] [ALPM] running 'glib-compile-schemas.hook'...                                                                                                                     
[2025-09-25T21:24:29-0400] [ALPM] running 'gtk-update-icon-cache.hook'...                                                                                                                    
[2025-09-25T21:24:29-0400] [ALPM] running 'gtk4-querymodules.hook'...                                                                                                                        
[2025-09-25T21:24:29-0400] [ALPM] running 'rebuild-detector.hook'...                                                                                                                         
[2025-09-25T21:24:39-0400] [ALPM-SCRIPTLET] foreign     firestorm-bin                                                                                                                        
[2025-09-25T21:24:39-0400] [ALPM-SCRIPTLET] aur qt5-base                                                                                                                                     
[2025-09-25T21:24:39-0400] [ALPM] running 'texinfo-install.hook'...                                                                                                                          
[2025-09-25T21:24:40-0400] [ALPM] running 'update-desktop-database.hook'...                                                                                                                  
[2025-09-25T21:24:40-0400] [ALPM] running 'update-vlc-plugin-cache.hook'...                                                                                                                  
[2025-09-25T21:24:40-0400] [ALPM] running 'vscodium-marketplace.hook'...                                                                                                                     
[2025-09-25T21:24:40-0400] [ALPM] running 'zz-snap-pac-post.hook'...                                                                                                                         
[2025-09-25T21:24:40-0400] [ALPM-SCRIPTLET] ==> root: 1039                                                                                                                                   
[2025-09-25T21:24:40-0400] [ALPM] running 'zz-snap-pac-postz-grub.hook'...                                                                                                                   
[2025-09-25T21:24:40-0400] [ALPM-SCRIPTLET] Generating grub configuration file ...                                                                                                           
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found theme: /boot/grub/themes/fallout-grub-theme/theme.txt                                                                                      
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-zen                                                                                                       
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux-zen.img                                                                                                
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found fallback initrd image(s) in /boot:  initramfs-linux-zen-fallback.img                                                                       
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-zen.old                                                                                                   
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux-zen.img.old                                                                                            
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-lts                                                                                                       
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux-lts.img                                                                                                
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found fallback initrd image(s) in /boot:  initramfs-linux-lts-fallback.img                                                                       
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-lts.old                                                                                                   
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux-lts.img.old                                                                                            
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-cachyos                                                                                                   
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux-cachyos.img
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found fallback initrd image(s) in /boot:  initramfs-linux-cachyos-fallback.img
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found initrd image: /boot/initramfs-linux.img
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Found fallback initrd image(s) in /boot:  initramfs-linux-fallback.img
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Warning: os-prober will not be executed to detect other bootable partitions.
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Systems on them will not be added to the GRUB boot configuration.
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Check GRUB_DISABLE_OS_PROBER documentation entry.
[2025-09-25T21:24:41-0400] [ALPM-SCRIPTLET] Adding boot menu entry for UEFI Firmware Settings ...

And then the shapshot listing shows up before it’s all said and done.

Do you have the quiet output set? If so, can you temporarily disable that so we can see which modules are failing?

I’m not following. Quiet output set on what? dracut? (seeings I can see this on dracut-rebuild without pacman/paru being involved, I can easily repeat this).

Yeah, in /etc/eos-dracut.conf or /etc/kernel-install-for-dracut.conf depending on which you have installed.

Normally the output from dracut would be a lot more verbose.

There we go, just what the doctor ordered:

:: Building initramfs for linux-lts (6.12.48-1-lts)
dracut[I]: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux-lts.img 6.12.48-1-lts
dracut[I]: *** Including module: bash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-battery-check ***
dracut[I]: *** Including module: systemd-cryptsetup ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrphase ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: drm ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: lvm ***
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: initqueue ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including module: btrfs-snapshot-overlay ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initramfs-linux-lts.img.tmp' ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Creating initramfs image file '/boot/initramfs-linux-lts.img.tmp' done ***
dracut[I]: *** Moving image file '/boot/initramfs-linux-lts.img.tmp' to '/boot/initramfs-linux-lts.img' ***
dracut[I]: *** Moving image file '/boot/initramfs-linux-lts.img.tmp' to '/boot/initramfs-linux-lts.img' done ***
:: Building fallback initramfs for linux-lts (6.12.48-1-lts)
dracut[I]: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-lts-fallback.img 6.12.48-1-lts
dracut[I]: *** Including module: rdma ***
Failed to add dependency on unit: Unit initrd.target does not exist
Failed to add dependency on unit: Unit initrd.target does not exist
Failed to add dependency on unit: Unit initrd.target does not exist
dracut[I]: *** Including module: bash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-battery-check ***
dracut[I]: *** Including module: systemd-cryptsetup ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrphase ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: modsign ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: drm ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: lvm ***
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: nvdimm ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: fido2 ***
dracut[I]: *** Including module: pkcs11 ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: initqueue ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including module: btrfs-snapshot-overlay ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initramfs-linux-lts-fallback.img.tmp' ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Creating initramfs image file '/boot/initramfs-linux-lts-fallback.img.tmp' done ***
dracut[I]: *** Moving image file '/boot/initramfs-linux-lts-fallback.img.tmp' to '/boot/initramfs-linux-lts-fallback.img' ***
dracut[I]: *** Moving image file '/boot/initramfs-linux-lts-fallback.img.tmp' to '/boot/initramfs-linux-lts-fallback.img' done ***

1 Like

Ahh…there is known issue with the rdma package.

It has been recently been fixed but hasn’t made it into the release yet.

Nice. So this will ultimately be fixed in dracut in the coming… Well, whenever until the next actual release pushes out, then to repos, and… Onwards. :slight_smile:

I was curious because I kept seeing it, and yes, I noted it was “not a problem”, but still seeing it, in my boot process building system, still after months, was starting to concern me. LOL

1 Like

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