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)
Seen this bug a minute after releasing 3.4.12 - perfect :-)
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 +