Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951284 - sys-kernel/dracut-103-r4: Incorrect path to mdadm binary with split-usr profile
Summary: sys-kernel/dracut-103-r4: Incorrect path to mdadm binary with split-usr profile
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexander Tsoy
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-03-13 09:43 UTC by Anders Larsson
Modified: 2025-03-24 05:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Larsson 2025-03-13 09:43:20 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2025-03-24 01:55:56 UTC
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(+)