Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650702 - Generated initramfs is without LUKS support. Kernel on LUKS partition cannot boot
Summary: Generated initramfs is without LUKS support. Kernel on LUKS partition cannot ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 12:09 UTC by yves.caniou
Modified: 2020-06-23 15:51 UTC (History)
0 users

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 yves.caniou 2018-03-17 12:09:28 UTC
Hi

sys-kernel/genkernel-3.4.52.4-r2 does not seem to generate correct initramfs with LUKS support, hence making booting from a LUKS partition impossible with new compiled kernels/initamfs

Everything worked fine until beginning of february.
I can't recall if I upgrade it or not before it stopped working, but I can't upgrade the kernel (regardless the tried version) and have something working since.
I tried to add cryptsetup to /etc/portage/package.use/, but resulting reinstalled genkernel does not work either.

Will try to upgrade to 3.5.2.5.

Cheers.

.Y
Comment 1 yves.caniou 2018-03-19 07:32:46 UTC
Here is a snip from kernel generation:

* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Copying keymaps
*         >> Appending busybox cpio data...
*         >> Appending luks cpio data...
* Including LUKS support
Traceback (most recent call last):
  File "/usr/bin/lddtree", line 52, in <module>
    from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
*         >> Appending modules cpio data...
*         >> Appending blkid cpio data...
Traceback (most recent call last):
  File "/usr/bin/lddtree", line 52, in <module>
    from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'

------

# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)

Got to select python 3.5 by default with eselect...
Comment 2 Francesco Turco 2020-03-12 14:37:56 UTC
Can you still reproduce this problem with an updated version of genkernel (currently 4.0.4)?