Bug 249587

Summary: Need to install mdadm before kernel
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: pjones, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-10 14:57:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235703    

Description Orion Poplawski 2007-07-25 16:28:10 UTC
Description of problem:

Seeing the following in my install.log:

Installing mkinitrd - 6.0.9-7.1.i386
Installing kernel - 2.6.22.1-27.fc7.i686
cp: cannot stat `/sbin/mdadm': No such file or directory

This results in a initrd that doesn't boot machines with root on a md device. 
Fix I believe is to add mdadm to kernel_prereq so that it is present when
mkinitrd is run.

There seem to be a number of mkinitrd bugs filed that are similar to this,
though many also have other issues reported as well.

Version-Release number of selected component (if applicable):
2.6.22.1-27.fc7

Comment 1 Will Woods 2007-08-01 16:50:23 UTC
This is definitely a mkinitrd problem, not a kernel problem (kernel %post script
uses mkinitrd to create the initrd - mkinitrd needs mdadm to function properly).

What mkinitrd bugs did you find that were similar to this one? Bug #244539 might
be the same thing.

This also manifests in rawhide / current F8t1 candidates - adding to F8t1 tracker.

Comment 2 Will Woods 2007-08-02 04:59:06 UTC
This might be better to fix by ensuring mdadm is installed before kernel in
anaconda, since the other two possibilities are:

1) any system with pre-existing RAID should already have mdadm, and
2) non-RAID systems don't need mdadm at all.

This is how we handle iscsi-initiator-utils as well.

Comment 3 Orion Poplawski 2007-08-27 01:15:42 UTC
Re-assigning to anaconda so that maybe there is some hope of being able to
successfully install software raid systems again sometime.

Comment 4 Jeremy Katz 2007-09-10 14:57:44 UTC
mkinitrd requires mdadm now, so the ordering should end up correct.  Still
working with Panu to come up with a more general way of hinting this to rpm
without the requires