Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352496 - Genkernel-experimental commit 30f88577f39b5d83cb1cefe778f7dfee66493217 breaks mdadm functionality
Summary: Genkernel-experimental commit 30f88577f39b5d83cb1cefe778f7dfee66493217 breaks...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 14:22 UTC by Malcolm Lashley
Modified: 2011-01-23 19:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm Lashley 2011-01-23 14:22:07 UTC
Following part of that commit was added to copy mdmon into the initramfs

-                       print_info 1 '          MDADM: Adding support (using local static binaries)...'
-                       cp /sbin/mdadm "${TEMP}/initramfs-mdadm-temp/sbin/mdadm" ||
+                       print_info 1 '          MDADM: Adding support (using local static binaries /sbin/mdadm and /sbin/mdmon)...'
+                       cp /sbin/mdadm /sbin/mdmon "${TEMP}/initramfs-mdadm-temp/sbin/mdadm" ||

If you fall down this codepath - genkernel bails because the target is not a directory - see following message:


*               MDADM: Adding support (using local static binaries /sbin/mdadm and /sbin/mdmon)...
cp: target `/var/tmp/genkernel/21427.9651.3381.23456/initramfs-mdadm-temp/sbin/mdadm' is not a directory
* ERROR: Could not copy over mdadm!


Fix is simply to change as follows to copy the 2 exe's in one go...

-                       cp /sbin/mdadm /sbin/mdmon "${TEMP}/initramfs-mdadm-temp/sbin/mdadm" ||

+                       cp /sbin/mdadm /sbin/mdmon "${TEMP}/initramfs-mdadm-temp/sbin" ||


Reproducible: Always

Steps to Reproduce:
1. emerge genkernel experimental - have static mdadm binaries on the system already (mdadm with USE=static)
2. Run genkernel
3.

Actual Results:  
Genkernel fails with the error outlined above

Expected Results:  
Genkernel completes (and copies mdadm and mdmon to the initramfs)
Comment 1 Sebastian Pipping gentoo-dev 2011-01-23 19:07:01 UTC
Seen this bug a minute after releasing 3.4.12 - perfect :-)
Comment 2 Sebastian Pipping gentoo-dev 2011-01-23 19:27:48 UTC
Malcom, thanks for reporting!  Please re-open if 3.4.12.1 does not fix this.

+*genkernel-3.4.12.1 (23 Jan 2011)
+
+  23 Jan 2011; Sebastian Pipping <sping@gentoo.org> -genkernel-3.4.12.ebuild,
+  +genkernel-3.4.12.1.ebuild:
+  Bump to 3.4.12.1 for bug #352496
+