Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 269042

Summary: sys-kernel/genkernel-3.4.10.904: doesn't include dm-crypt module in initramfs despite --luks switch
Product: Gentoo Linux Reporter: Marios Andreopoulos <opensource>
Component: [OLD] Core systemAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: major CC: sping
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marios Andreopoulos 2009-05-08 16:46:24 UTC
Genkernel (3.4.10.904) when called with --luks switch doesn't include in the initramfs the dm-crypt (dm-crypt.ko) module which is necessary for the kernel to open encrypted partitions.

A workaround is to compile dm-crypt into the kernel but I believe the expected behaviour is for this module to be included if found, such as the rest device mapper modules.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-kernel/genkernel-3.4.10.904
2. genkernel --install --luks --menuconfig all
3. In menuconfig set device mapper and crypt target to be compiled as modules.
Device Drivers -> Multiple devices driver support (RAID and LVM) -> Device mapper support <M> AND Crypt target support <M>
4. zcat newly_created_initramfs | cpio -t | grep dm-crypt.ko 
Actual Results:  
The last command gives empty output.

Expected Results:  
Grep the dm-crypt module:
lib/modules/version/kernel/drivers/md/dm-crypt.ko
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-09 02:02:45 UTC
This has been fixed in git.
Comment 2 Marios Andreopoulos 2009-05-09 12:11:49 UTC
(In reply to comment #1)
> This has been fixed in git.
> 

I have yet to learn searching in git. :(
genkernel devs feel free to change the status of the bug. Thanks for your efforts and time on genkernel!
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-09 18:14:26 UTC
Just emerge =sys-kernel/genkernel-9999. That will do a git checkout.
Comment 4 Sebastian Pipping gentoo-dev 2010-11-18 22:41:17 UTC
Confirmed to work with sys-kernel/genkernel-3.4.10.907.  Closing.