Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927284 - sys-kernel/genkernel-4-3-10 Did not found any udev-related files for sys-fs/zfs!
Summary: sys-kernel/genkernel-4-3-10 Did not found any udev-related files for sys-fs/zfs!
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
: 934629 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-19 10:44 UTC by grixfosforito
Modified: 2024-06-22 02:56 UTC (History)
6 users (show)

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


Attachments
/var/log/genkernel.log (genkernel.log,38.75 KB, text/x-log)
2024-03-19 10:46 UTC, grixfosforito
Details
Gziped /var/log/genkernel.log (genkernel.log.gz,108.03 KB, application/gzip)
2024-04-24 14:45 UTC, mbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grixfosforito 2024-03-19 10:44:44 UTC
I create my initramfs with the following command:

genkernel initramfs --firmware --kernel-config=/usr/src/linux/.config --keymap --makeopts=-j16 --mountboot --no-clean --zfs

It has been working fine, but now it does not work and gives me the following error:

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending zfs cpio data ...
* ERROR: Something went wrong: Did not found any udev-related files for sys-fs/zfs!

I am not sure if this is specific to my system, or a bug.

Reproducible: Always
Comment 1 grixfosforito 2024-03-19 10:46:04 UTC
Created attachment 887916 [details]
/var/log/genkernel.log
Comment 2 mbe 2024-04-24 14:39:29 UTC
I have this issue too, even with Genkernel version 4.3.11:

genkernel initramfs --firmware --kernel-config=/usr/src/linux/.config --keymap --makeopts=-j5 --mountboot --no-clean --zfs
* Gentoo Linux Genkernel; Version 4.3.11
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: initramfs --firmware --kernel-config=/usr/src/linux/.config --keymap --makeopts=-j5 --mountboot --no-clean --zfs

* Working with Linux kernel 6.6.28-gentoo-x86_64 for x86_64
* Using kernel config file '/usr/src/linux-6.6.28-gentoo/.config' ...

* mount: >> Boot partition was temporarily mounted on '/boot' ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending zfs cpio data ...
* ERROR: Something went wrong: Did not found any udev-related files for sys-fs/zfs!
* 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!
* 

* mount: >> Automatically unmounting boot partition from '/boot' as it was previously ...
Comment 3 mbe 2024-04-24 14:45:04 UTC
Created attachment 891660 [details]
Gziped /var/log/genkernel.log
Comment 4 grixfosforito 2024-04-24 15:52:09 UTC
This issue has been fixed for me, but I don't know the cause or the solution.

After reporting it, I upgraded my profile and re-emerged all of the @world packages. Afterwards, this issue was gone.
Comment 5 mbe 2024-04-28 20:55:36 UTC
The same issue in version 4.3.12:

# genkernel initramfs --firmware --kernel-config=/usr/src/linux/.config --keymap --makeopts=-j5 --mountboot --no-clean --zfs
* Gentoo Linux Genkernel; Version 4.3.12
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: initramfs --firmware --kernel-config=/usr/src/linux/.config --keymap --makeopts=-j5 --mountboot --no-clean --zfs

* Working with Linux kernel 6.6.28-gentoo-x86_64 for x86_64
* Using kernel config file '/usr/src/linux-6.6.28-gentoo/.config' ...

* mount: >> Boot partition was temporarily mounted on '/boot' ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending zfs cpio data ...
* ERROR: Something went wrong: Did not found any udev-related files for sys-fs/zfs!
* 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!
* 

* mount: >> Automatically unmounting boot partition from '/boot' as it was previously ...
Comment 6 Alix 2024-05-12 16:54:16 UTC
Re-emerge sys-fs/zfs. its currently installed udev files location does not match the result of /usr/share/genkernel/gen_funcs.sh's get_udevdir() . 

It's a consequence of profile upgrade or split-usr merge.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-12 17:04:59 UTC
Sounds like it's not using pkgconfig?
Comment 8 Alix 2024-05-12 17:21:05 UTC
I don't know. I experienced the bug with sys-fs/{zfs,zfs-kmod}-2.1.14 and genkernel 4.3.10, and profile was indeed upgraded not so long ago. Apparently sys-fs/zfs wasn't rebuilt, and that's an obvious PEBKAC.

https://gitweb.gentoo.org/proj/genkernel.git/tree/gen_initramfs.sh#n1135  the failed check logic matches installed files of sys-fs/zfs against currently discovered udev location.
Comment 9 Mike Gilbert gentoo-dev 2024-06-20 20:13:55 UTC
This is likely triggered by sys-app/systemd-utils-255.7, which moved udevdir from /lib/udev to /usr/lib/udev.

Rebuilding sys-fs/zfs should resolve the issue.
Comment 10 Mike Gilbert gentoo-dev 2024-06-20 20:14:24 UTC
*** Bug 934629 has been marked as a duplicate of this bug. ***