Bug 559073 - Dracut uses the wrong mdadm.conf file
Summary: Dracut uses the wrong mdadm.conf file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-27 04:01 UTC by James.Schatzman@futurelabusa.com
Modified: 2010-05-11 19:46 UTC (History)
2 users (show)

Fixed In Version: dracut-005-2.fc12
Clone Of:
Environment:
Last Closed: 2010-05-11 19:46:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James.Schatzman@futurelabusa.com 2010-01-27 04:01:59 UTC
Description of problem:


Version-Release number of selected component (if applicable):  002-13.4 and 003-4(at least)


How reproducible: 100%


Steps to Reproduce:

1. Create /etc/mdadm.conf and /etc/mdadm/mdadm.conf differently.
2. Run dracut to create an initramfs.
3. Try to boot - the /etc/mdadm/mdadm.conf file will be used, even though mdadm uses /etc/mdadm.conf and you would think that dracut would also.
  
Actual results:

The /etc/mdadm/mdadm.conf file will be used, although this is unexpected, because mdadm itself as released in FC11 and FC12 uses /etc/mdadm.conf.

Expected results:

Should use /etc/mdadm.conf, or at least warn the user that it may be doing something unexpected.

Additional info:

This is especially an issue with the FC11 to FC12 transition because FC12 enumerates SCSI and SATA drives in the opposite order (FC11=SCSI before SATA; FC12=SATA before SCSI, at least in my system). The point being that the mdadm.conf has to be exactly correct or mdadm will fail. In my case, /etc/mdadm/mdadm.conf referred to /dev/sda, /dev/sdb whereas /etc/mdadm.conf had similar information but using UUIDs instead of device names. No difference until FC12 enumerated backwards. Then, the system drive was no longer a raid on /dev/sda and /dev/sdb but on /dev/sdi and /dev/sdj. It was not clear until I did some debugging that dracut was using the wrong mdadm.conf file. 

NOTE: The mdadm command uses /etc/mdadm.conf. I can put bad data in /etc/mdadm/mdadm.conf all day long and mdadm is unaffected. Not so dracut.

Comment 1 James.Schatzman@futurelabusa.com 2010-01-27 04:03:23 UTC
Sorry, that should have said version 004-4.

Comment 2 Fedora Update System 2010-04-15 14:34:23 UTC
dracut-005-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dracut-005-2.fc12

Comment 3 Fedora Update System 2010-04-16 23:44:24 UTC
dracut-005-2.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/dracut-005-2.fc12

Comment 4 Fedora Update System 2010-05-11 19:46:17 UTC
dracut-005-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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