Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269042 - sys-kernel/genkernel-3.4.10.904: doesn't include dm-crypt module in initramfs despite --luks switch
Summary: sys-kernel/genkernel-3.4.10.904: doesn't include dm-crypt module in initramfs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-05-08 16:46 UTC by Marios Andreopoulos
Modified: 2010-11-18 22:41 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 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.