Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353026 - sys-kernel/genkernel: LVM2 needs device mapper to build
Summary: sys-kernel/genkernel: LVM2 needs device mapper to build
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-28 09:47 UTC by Xake
Modified: 2011-01-29 14:52 UTC (History)
1 user (show)

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


Attachments
build device-mapper before trying to build lvm2 (0004-lvm2-needs-device-mapper.patch,700 bytes, patch)
2011-01-28 09:48 UTC, Xake
Details | Diff
COrrectly remove remains of devicemapper (0006-Remove-unpacking-of-device-mapper-for-lvm2.patch,915 bytes, patch)
2011-01-28 18:03 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2011-01-28 09:47:36 UTC
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.
Comment 1 Xake 2011-01-28 09:48:04 UTC
Created attachment 260901 [details, diff]
build device-mapper before trying to build lvm2
Comment 2 Sebastian Pipping gentoo-dev 2011-01-28 15:48:20 UTC
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?
Comment 3 Sebastian Pipping gentoo-dev 2011-01-28 16:27:41 UTC
This is the commit I am referring to:
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=5eb029e546a740d3aa89ffb186a654a50c116cf2
Comment 4 Xake 2011-01-28 17:52:24 UTC
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
Comment 5 Xake 2011-01-28 18:03:05 UTC
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.;)
Comment 6 Sebastian Pipping gentoo-dev 2011-01-29 14:52:11 UTC
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
+