Currently if USE="-static" sys-fs/lvm2 then genkernel fails if you want to add lvm2 to initramfs/initrd, since the genkernel logic eeds device-mapper already built, but the logic in genkernel to build lvm2 does not depend on device-mapper being builts. This patch fixes that.
Created attachment 260901 [details, diff] build device-mapper before trying to build lvm2
The line you ask to patch in was removed when upgrading lvm support to to lvm 2.02.74. Could you elaborate on how lvm2 needs device mapper?
This is the commit I am referring to: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=5eb029e546a740d3aa89ffb186a654a50c116cf2
Hmm, I did not check if you used a lvm2 that new that it included device-mapper itself. However, then you have to remove the following line ,since it breaks compile_lvm if there is no precompiled device-mapper: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=blob;f=gen_compile.sh;hb=HEAD#l431
Created attachment 260939 [details, diff] COrrectly remove remains of devicemapper so it seems like not everything was removed that should have been removed in the referenced commit, so here is the cleanup.;) reboot-tested on my system.;)
Thanks man, patch applied. +*genkernel-3.4.12.3 (29 Jan 2011) + + 29 Jan 2011; Sebastian Pipping <sping@gentoo.org> +genkernel-3.4.12.3.ebuild: + Bump to 3.4.12.3 for bug #353026 +