Bug 249587 - Need to install mdadm before kernel
Summary: Need to install mdadm before kernel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F8Blocker
TreeView+ depends on / blocked
 
Reported: 2007-07-25 16:28 UTC by Orion Poplawski
Modified: 2007-11-30 22:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-09-10 14:57:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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