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
Created attachment 887916 [details] /var/log/genkernel.log
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 ...
Created attachment 891660 [details] Gziped /var/log/genkernel.log
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.
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 ...
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.
Sounds like it's not using pkgconfig?
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.
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.
*** Bug 934629 has been marked as a duplicate of this bug. ***