On split-usr profile (default/linux/amd64/23.0/split-usr/no-multilib/hardened) dracut attempts to use mdadm from /sbin/mdadm, however it is installed into /usr/sbin/mdadm. /usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 54: /sbin/mdadm: No such file or directory Reproducible: Always Steps to Reproduce: 1. dracut --hostonly --force --kver 6.12.16-gentoo Actual Results: /usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 54: /sbin/mdadm: No such file or directory Expected Results: mdadm is successfully added to initramfs image.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1909b3bee6c4aa79d71591433830c7381795c89d commit 1909b3bee6c4aa79d71591433830c7381795c89d Author: Alexander Tsoy <alexander@tsoy.me> AuthorDate: 2025-03-24 00:51:08 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-24 01:55:37 +0000 sys-kernel/dracut: do not call mdadm with full path Bug: https://bugs.gentoo.org/951284 Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/41255 Signed-off-by: Sam James <sam@gentoo.org> .../{dracut-106-r1.ebuild => dracut-106-r2.ebuild} | 2 ++ .../dracut/files/dracut-106-fix-mdraid-module.patch | 17 +++++++++++++++++ 2 files changed, 19 insertions(+)