Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947260 - broken initramfs missing key system libraries?
Summary: broken initramfs missing key system libraries?
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-31 08:05 UTC by Aliaksei Urbanski
Modified: 2025-04-08 18:04 UTC (History)
14 users (show)

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


Attachments
emerge --info (emerge-info.txt.gz,3.68 KB, application/gzip)
2024-12-31 08:05 UTC, Aliaksei Urbanski
Details
dmesg (dmesg.txt.gz,17.02 KB, application/gzip)
2024-12-31 08:06 UTC, Aliaksei Urbanski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aliaksei Urbanski 2024-12-31 08:05:26 UTC
Hello everyone,

I've noticed that udevd complains about missing files when the system starts.

$ dmesg | grep 'udevd.*failed'
[    3.500854] udevd[629]: failed to execute '/usr/lib/udev/dmi_memory_id' 'dmi_memory_id': No such file or directory
[    3.536318] udevd[630]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    3.537201] udevd[632]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    3.537421] udevd[631]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    4.034021] udevd[633]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    4.874092] udevd[634]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    4.874617] udevd[635]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
[    4.875062] udevd[636]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory


It happens before the root filesystem is mounted, so I've checked my initramfs and those files are in place.

$ xzcat /boot/initramfs-6.12.7-gentoo-x86_64.img | cpio -vt 2>/dev/null | grep 'dmi_memory_id\|fido_id'
-rwxr-xr-x   1 root     root       125704 Dec 30 11:39 usr/lib/udev/dmi_memory_id
-rwxr-xr-x   1 root     root       112368 Dec 30 11:39 usr/lib/udev/fido_id

Reproducible: Always
Comment 1 Aliaksei Urbanski 2024-12-31 08:05:55 UTC
Created attachment 915565 [details]
emerge --info
Comment 2 Aliaksei Urbanski 2024-12-31 08:06:16 UTC
Created attachment 915566 [details]
dmesg
Comment 4 Alex Belits 2025-01-04 04:23:29 UTC
(In reply to Aliaksei Urbanski from comment #0)

> It happens before the root filesystem is mounted, so I've checked my
> initramfs and those files are in place.

The executable files in initramfs use shared libraries (except for libsystemd), however those shared libraries are missing in the image.

Libraries in question (using current build):

/lib64/libc.so.6
/lib64/libm.so.6
/usr/lib64/libacl.so.1.1.2302
/usr/lib64/libblkid.so.1.1.0
/usr/lib64/libcap.so.2.71
/usr/lib64/libcrypt.so.2.0.0
/usr/lib64/libmount.so.1.1.0
Comment 5 Mike Gilbert gentoo-dev 2025-01-06 02:57:25 UTC
What are you using to generate the initramfs?
Comment 6 Mike Gilbert gentoo-dev 2025-01-06 02:58:21 UTC
Comment on attachment 915565 [details]
emerge --info

Please do not compress attachments when their size does not exceed 1 MB. It just makes it more difficult to review the information.
Comment 7 Alex Belits 2025-01-07 06:37:13 UTC
(In reply to Mike Gilbert from comment #5)
> What are you using to generate the initramfs?

sys-kernel/genkernel-4.3.16-r2
Comment 8 Aliaksei Urbanski 2025-01-07 17:14:14 UTC
> What are you using to generate the initramfs?

In my case, it was sys-kernel/genkernel-4.3.16-r2, too.
Comment 9 John Blbec 2025-02-01 09:46:43 UTC
i have the same problem, using sys-kernel/genkernel-4.3.16-r2 and openrc (not systemd)
Comment 10 Oleg Hoefling 2025-02-02 12:00:51 UTC
I don't know if it's related, but besides the error mentioned by the issue author, I also see an error for missing `systemd-run` executable:

$ dmesg | grep 'udevd.*failed'
[    3.984242] udevd[1243]: failed to execute '/usr/lib/udev/dmi_memory_id' 'dmi_memory_id': No such file or directory
[   23.139722] udevd[1493]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-vg0 /usr/sbin/lvm vgchange -aay --autoactivation event vg0': No such file or directory

initramfs generated with =genkernel-4.3.16-r3, but also reproducible with e.g. 4.3.15 as well.
Comment 11 Marius Caldas 2025-03-05 00:31:43 UTC
I have the same problem here, with genkernel-4.3.16-r3, and kernel 6.13.5-gentoo:

udevd[2390]: failed to execute '/usr/lib/udev/dmi_memory_id' 'dmi_memory_id': No such file or directory

and many 

udevd[2421]: failed to execute '/usr/lib/udev/fido_id' 'fido_id': No such file or directory
Comment 12 Sebastian Krupa 2025-04-06 11:41:27 UTC
same here - sys-kernel/genkernel-4.3.16-r2, kernel 6.12.16-gentoo-x86_64
Comment 13 Vasilis Lourdas 2025-04-07 15:54:21 UTC
Same here, with latest stable genkernel (4.3.16-r2).