Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618056 - sys-kernel/genkernel: lddtree errors aren't detected
Summary: sys-kernel/genkernel: lddtree errors aren't detected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 22:24 UTC by Thomas Deutschmann (RETIRED)
Modified: 2019-03-20 23:26 UTC (History)
2 users (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 Thomas Deutschmann (RETIRED) gentoo-dev 2017-05-09 22:24:27 UTC
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
> 
> [...]
Comment 1 Larry the Git Cow gentoo-dev 2017-09-04 05:54:31 UTC
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(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-01-11 03:58:15 UTC
This is not fixed in sys-kernel/genkernel-3.5.2.5 or the fix doesn't work.
Comment 3 Larry the Git Cow gentoo-dev 2019-03-20 23:26:42 UTC
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(+)