Bug 9983 - Dracut does not add mdadm to initramfs when needed
Summary: Dracut does not add mdadm to initramfs when needed
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: release_blocker critical
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-04 23:06 CEST by Anssi Hannula
Modified: 2013-05-08 23:31 CEST (History)
0 users

See Also:
Source RPM: dracut
CVE:
Status comment:


Attachments

Description Anssi Hannula 2013-05-04 23:06:41 CEST
mdadm is missing from initramfs since mga2->mga3 upgrade, reproducable after upgrade as well so not a transient issue.

This causes a failure to boot on an mdadm RAID system.

18:16:22 < Anssi> dracut seems to think md is not needed... but why, that is a bit more difficult to figure out...
18:18:11 < Anssi> and the code seems like it can't possibly work... 90mdraid/module-setup.sh::check() calls for_each_host_dev_and_slaves_all() giving check_mdraid() as a callback function... but the callback expects 2 
                  parameter while it actually gets called with 1
18:36:07 < Anssi> coling: applied this http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=d351541ee625f8a1b42446448214f200f19c2631    which in modules.d/90mdraid/module-setup.sh  replaces the call  to  
                  for_each_host_dev_and_slaves_all with for_each_host_dev_fs among other things, and mdadm gets now added correctly


If it turns out that this does not affect all root-on-mdRAID systems, priority can be lowered from release-blocker.
Comment 1 Colin Guthrie 2013-05-08 23:31:50 CEST
Fixed by reverting a bad patch I added :(

http://svnweb.mageia.org/packages?view=revision&revision=412382


Already pushed and available.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.