Summary: | sys-kernel/genkernel-next-68 - binaries and libraries are not copied to initramfs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Ettore Di Giacinto (RETIRED) <mudler> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | lxnay |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
genkernel.conf
.config |
Created attachment 516562 [details]
.config
I have now set LOGLEVEL=5 in /etc/genkernel.conf. Generating kernel and and initramfs I see now the following: ... * >> Appending mdadm 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' * MDADM: Skipping inclusion of mdadm.conf ... * >> Appending modules cpio data... * initramfs: >> Searching for modules... ... * initramfs: >> Copying zstd_decompress.ko... ================================================================= About to add these files from '/var/tmp/genkernel/7761.2971.29427.22236/initramfs-modules-4.14.15-gentoo-temp' to cpio archive: ... * >> 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' ================================================================= About to add these files from '/var/tmp/genkernel/7761.2971.29427.22236/initramfs-blkid-temp' to cpio archive: drwxr-xr-x 2 root root 4096 Jan 29 17:33 . ================================================================= * >> Skipping modprobed copy * >> Appending ld_so_conf cpio data... * ldconfig: adding /sbin/ldconfig... Traceback (most recent call last): File "/usr/bin/lddtree", line 52, in <module> from elftools.elf.elffile import ELFFile ModuleNotFoundError: No module named 'elftools' * ld.so.conf: adding /etc/ld.so.conf{.d/*,}... ================================================================= About to add these files from '/var/tmp/genkernel/7761.2971.29427.22236/initramfs-ld-temp' to cpio archive: Does this output comes from the failing copy of sbin/mdadm and sbin/blkid to the initramfs? Is there an other possibility do debug genkernel? This bug seems to be a consequence of bug https://bugs.gentoo.org/639412. After solving the issue with lddtree and running genkernel again, I got at least initramfs with the expected size. (In reply to Juergen Rose from comment #3) > This bug seems to be a consequence of bug https://bugs.gentoo.org/639412. > After solving the issue with lddtree and running genkernel again, I got at > least initramfs with the expected size. also have the problem! after update the pax-utils toapp-misc/pax-utils-1.2.3-r1 as mentioned in the above link, I get initramfs with the expected size too, and lddtree works fine. Hey, just add the same issue, and I can confirm you can fix it by bumping to app-misc/pax-utils-1.2.3-r1 ! Package removed. |
Created attachment 516560 [details] genkernel.conf Since installing gentoo-sources-4.13.5 I can't boot with the corresponding kernels at one system. The booting hangs during the initial ramdisk phase, because the root device, which is a raid1 disk is not detected. Comparing the initramfs before and after gentoo-sources-4.13.5 I see that the size of the current ramdisks is considerable smaller than before: rose@cheetahnew:/boot(52)$ ll initramfs-genkernel-x86_64-4.* -rw-r--r-- 1 root root 2361580 Nov 24 11:23 initramfs-genkernel-x86_64-4.13.12-gentoo -rw-r--r-- 1 root root 6920260 Sep 26 12:25 initramfs-genkernel-x86_64-4.13.3-gentoo -rw-r--r-- 1 root root 6923352 Sep 30 00:47 initramfs-genkernel-x86_64-4.13.4-gentoo -rw-r--r-- 1 root root 2367228 Oct 11 22:27 initramfs-genkernel-x86_64-4.13.5-gentoo -rw-r--r-- 1 root root 2462896 Nov 27 16:56 initramfs-genkernel-x86_64-4.14.2-gentoo -rw-r--r-- 1 root root 2469492 Dec 23 06:38 initramfs-genkernel-x86_64-4.14.8-gentoo-r1 -rw-r--r-- 1 root root 2354932 Jan 23 20:13 initramfs-genkernel-x86_64-4.9.77-gentoo All initramfs compiled before Sep 30 have a size ca. 6.9MB, the initramfs compiled after that time have only a size of ca. 2.4MB. If I look into the different versions of initramfs I miss all libraries and lot of binaries in the newer initramfs versions: initramfs-4.13.4: initramfs-4.13.4: ------------------------------------------------------------------------ ./sbin ./sbin ./sbin/modprobe ./sbin/modprobe ./sbin/rmmod ./sbin/rmmod ./sbin/blkid ./sbin/insmod ./sbin/insmod ./sbin/cache_dump ./sbin/mdadm ./sbin/thin_restore ./sbin/mdassemble ./sbin/lvm ./sbin/losetup ./sbin/losetup ... ./usr/lib ./usr/lib ./usr/lib/libexpat.so.1 ./usr/lib/liblz4.so.1 ./usr/lib/libgcrypt.so.20 ./usr/lib/libgpg-error.so.0 ./usr/lib/libseccomp.so.2 ./usr/lib/gcc ./usr/lib/gcc/x86_64-pc-linux-gnu ./usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0 ./usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libstdc++.so.6 ./usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1 ./usr/bin ./usr/bin ./run ./lib ./lib ./lib ... MDADM and LVM is activated in genkernel.conf rose@cheetahnew:/boot(56)$ grep "^MDADM\|^LVM\|^LOGLEVEL" /etc/genkernel.conf LVM=yes MDADM=yes LOGLEVEL=5 and the kernel is usually generated with 'genkernel --oldconfig --udev --mdadm --lvm all'. Is there any idea, what could be the reason of this behaviour. I will attach genkernel.conf and .config .