Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689930 - sys-kernel/genkernel-4.0.0_beta2 fail to build initramfs with app-misc/pax-utils[-python]
Summary: sys-kernel/genkernel-4.0.0_beta2 fail to build initramfs with app-misc/pax-ut...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2019-07-15 19:10 UTC by Søren Dalby Larsen
Modified: 2019-07-16 01:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel.log.xz (genkernel.log.xz,52.08 KB, application/x-xz)
2019-07-15 19:14 UTC, Søren Dalby Larsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Dalby Larsen 2019-07-15 19:10:54 UTC
When running the usual

the result is:
localhost src # genkernel --luks --lvm --install initramfs && emerge @module-rebuild
* Gentoo Linux Genkernel; Version 4.0.0_beta2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --luks --lvm --install initramfs

* Working with Linux kernel 5.2.1-gentoo for x86_64
* Using kernel config file '/usr/share/genkernel/arch/x86_64/generated-config' ...
*
* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending auxilary cpio data ...
*         >> Appending blkid cpio data ...
*         >> Appending busybox cpio data ...
cp: cannot stat '/lib64/Display ELF dependencies as a tree': No such file or directory
* ERROR: create_initramfs(): append_data(): append_busybox(): copy_system_binaries(): Failed to copy '/lib64/Display ELF dependencies as a tree' to '/var/tmp/genkernel/gk.niscoHFR/initramfs-busybox-temp/lib'!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
*
* Please do *not* report kernel compilation failures as genkernel bugs!

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-kernel/genkernel-4.0.0_beta2
2. genkernel --luks --lvm --install initramfs
Actual Results:  
localhost src # genkernel --luks --lvm --install initramfs && emerge @module-rebuild
* Gentoo Linux Genkernel; Version 4.0.0_beta2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --luks --lvm --install initramfs

* Working with Linux kernel 5.2.1-gentoo for x86_64
* Using kernel config file '/usr/share/genkernel/arch/x86_64/generated-config' ...
*
* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending auxilary cpio data ...
*         >> Appending blkid cpio data ...
*         >> Appending busybox cpio data ...
cp: cannot stat '/lib64/Display ELF dependencies as a tree': No such file or directory
* ERROR: create_initramfs(): append_data(): append_busybox(): copy_system_binaries(): Failed to copy '/lib64/Display ELF dependencies as a tree' to '/var/tmp/genkernel/gk.niscoHFR/initramfs-busybox-temp/lib'!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
*
* Please do *not* report kernel compilation failures as genkernel bugs!

Expected Results:  
A working initramfs.

Works fine with genkernel-3.5.3.3
Comment 1 Ben Kohler gentoo-dev 2019-07-15 19:13:01 UTC
This is fixed just a few minutes ago here:
https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=6a3ecc5314d47dee5019e380dfd13877d2e5cd2b

One workaround is to install pax-utils with USE=python, another one is to edit gen_initramfs and replace "lddree --list" with "lddtree -l"
Comment 2 Søren Dalby Larsen 2019-07-15 19:14:49 UTC
Created attachment 582938 [details]
genkernel.log.xz

genkernel log
Comment 3 matoro archtester 2019-07-15 19:36:42 UTC
I would like to add that this is *not* specific to luks or crypt, because I do not have either of these enabled and I am still getting this issue.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-16 00:32:19 UTC
beta3 which contains the fix will appear shortly.