Bug 586044

Summary: [md RAID1] mkinitrd fails to create initrd
Product: [openSUSE] openSUSE 11.3 Reporter: Felix Miata <mrmazda>
Component: BasesystemAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium    
Version: Factory   
Target Milestone: ---   
Hardware: PC   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/updateTestcase-2010-03-05-21-54-13 files
content of /var/log/YaST2

Description Felix Miata 2010-03-06 03:49:35 UTC
Created attachment 346944 [details]
/var/log/updateTestcase-2010-03-05-21-54-13 files

This is M2 system in bug 583424 (with y2logs) just upgraded via 'zypper ref; zypper dup' with M3 iso on NFS as source. Upgrade seemed uneventful, but failed to build an initrd. Cmdline attempt to build exited swiftly with:

Root device: /dev/root (mounted on / as ext3)
Device root not found in sysfs.
Comment 1 Felix Miata 2010-05-15 15:45:22 UTC
Created attachment 362457 [details]
content of /var/log/YaST2

Logs captured from 11.0 boot without first booting the fresh 11.3M6 installation.

I installed M6 to a manually "cleaned" / target /dev/md3. "Cleaning" involved removing most files/dirs with mc, leaving behind mainly /boot, portions of /root, /lib/modules, and a skeleton /etc containing backup versions of selected files.

Popup window message during M6 installation:

An error occurred during initrd creation.
kernel image: /boot/vmlinuz-2.6.33-5-default
initrd image: /boot/initrd-2.6.33-5-default
root device: ext3-root (/dev/block/9:3)(mounted on / as ext3)
device block!9:3 not found in sysfs

ls -l on /dev/md3 target /boot shows fresh initrd symlink to a non-existent initrd.

After booting M6 to kernel 2.6.33-rc7 from M2, I tried 'mkinitrd -k vmlinuz-2.6.34-rc5-6-default -i initrd-2.6.34-rc5-6-default', but again got device root not found in sysfs.
Comment 2 Felix Miata 2010-06-29 14:22:31 UTC
I did a fresh RC1 install on same system, and its kernel-default initrd worked as expected. After zypper ref I did zypper in kernel-desktop. That works as expected also. Looks like this got fixed.
Comment 3 Michal Marek 2010-06-29 14:26:26 UTC
Ah, yes, this got fixed with http://gitorious.org/opensuse/mkinitrd/commit/a922061ec3a41866662a6aeec5b063204c5cb4d6. Thanks for testing!