Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616734 - sys-kernel/genkernel-3.5.0.8: Fails to build initramfs on pristine kernel sources
Summary: sys-kernel/genkernel-3.5.0.8: Fails to build initramfs on pristine kernel sou...
Status: RESOLVED DUPLICATE of bug 491636
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-04-27 14:53 UTC by Patrick Lauer
Modified: 2019-07-15 10:34 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 Patrick Lauer gentoo-dev 2017-04-27 14:53:52 UTC
# genkernel --kernel-config=/usr/src/linux/.config --mdadm-config=/etc/mdadm.conf initramfs
* Gentoo Linux Genkernel; Version 3.5.0.8
* Running with options: --kernel-config=/usr/src/linux/.config --mdadm-config=/etc/mdadm.conf initramfs

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 4.9.16-gentoo for x86_64...
* .. with config file /usr/share/genkernel/arch/x86_64/generated-config
* busybox: >> Using cache
* initramfs: >> Initializing...
*         >> Appending devices cpio data...
/usr/share/genkernel/gen_initramfs.sh: line 78: /usr/src/linux/usr/gen_init_cpio: No such file or directory
* ERROR: Failed to add devices to cpio

The reason is:
        ${KERNEL_OUTPUTDIR}/usr/gen_init_cpio "${TEMP}/initramfs-base-temp.devices" >"${CPIO}" \
                        || gen_die "Failed to add devices to cpio"

that binary is missing - 

 # ls usr/
gen_init_cpio.c   .gitignore        initramfs_data.S  Kconfig           Makefile


So genkernel needs to invoke make before calling the binary in the kernel source dir.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:24:47 UTC
This was addressed via https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=dcfc952708ed4d6f7ffd303178d7b72e79c6aa3c
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:34:27 UTC
Changing resolution to duplicate of bug 491636.

*** This bug has been marked as a duplicate of bug 491636 ***