I switched to Python 3.6 and compiled a new kernel using sys-kernel/genkernel-3.5.0.8. On reboot my system failed to boot. Turns out that the generated initramfs was broken because dev-python/pyelftools has no Python 3.6 support yet so any call to lddtree will fails. However genkernel didn't detect that: > * busybox: >> Using cache > * initramfs: >> Initializing... > * >> Appending devices cpio data... > * >> Appending base_layout cpio data... > * >> Appending auxilary cpio data... > * >> Copying keymaps > * >> Appending busybox cpio data... > * >> Appending lvm cpio data... > * LVM: Adding support (compiling binaries)... > * lvm: >> Using cache > * >> 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 > ModuleNotFoundError: 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 > ModuleNotFoundError: No module named 'elftools' > * >> Appending modprobed cpio data... > * >> Appending linker cpio data... > * >> Deduping cpio... > * >> Compressing cpio data (.xz)... > * early-microcode: >> Preparing... > * >> adding GenuineIntel.bin > * >> adding AuthenticAMD.bin > * early-microcode: >> Creating cpio... > 1969 blocks > * early-microcode: >> Prepending early-microcode to initramfs > > [...]
Bug has been closed via the following commit: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=4d7d4e146bbecf6cc039ce3e5cdf89a91b751f4e commit 4d7d4e146bbecf6cc039ce3e5cdf89a91b751f4e Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2017-09-04 05:42:35 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2017-09-04 05:42:35 +0000 gen_initramfs: catch lddtree failure. Fixes: https://bugs.gentoo.org/show_bug.cgi?id=618056 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> gen_initramfs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
This is not fixed in sys-kernel/genkernel-3.5.2.5 or the fix doesn't work.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=65207ce9470fe81d94450e453765af9633fedc4e commit 65207ce9470fe81d94450e453765af9633fedc4e Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-03-20 23:25:52 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-03-20 23:25:52 +0000 gen_initramfs: catch lddtree failure for real. Fixes: https://bugs.gentoo.org/618056 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> gen_initramfs.sh | 7 +++++++ 1 file changed, 7 insertions(+)