Code: Select all
# emerge gentoo-kernel
...
Reading /usr/lib/kernel/install.conf...
/usr/lib/kernel/install.conf configures layout=uki
/usr/lib/kernel/install.conf configures initrd_generator=dracut
/usr/lib/kernel/install.conf configures uki_generator=dracut
Running /usr/lib/kernel/preinst.d/35-amd-microcode.install 6.12.25-gentoo-dist-hardened /usr/src/linux-6.12.25-gentoo-dist-hardened/arch/x86/boot/bzImage...
initrd_generator=dracut bundles CPU microcode, nothing to do here.
Hook /usr/lib/kernel/preinst.d/35-amd-microcode.install finished successfully
Running /usr/lib/kernel/preinst.d/50-dracut.install 6.12.25-gentoo-dist-hardened /usr/src/linux-6.12.25-gentoo-dist-hardened/arch/x86/boot/bzImage...
[1;32m*[0m Using dracut as the initramfs and UKI generator...
dracut[I]: Executing: /usr/bin/dracut --add-confdir hostonly --kernel-image /usr/src/linux-6.12.25-gentoo-dist-hardened/arch/x86/boot/bzImage --verbose --uefi /var/tmp/portage/sys-kernel/gentoo-kernel-6.12.25/temp/installkernel.staging.hJsIFz4/uki.efi 6.12.25-gentoo-dist-hardened
dracut[D]: Module 'dash' will not be installed, because command 'dash' could not be found!
...
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[D]: kernel-modules-extra: configuration source "/run/depmod.d" does not exist
dracut[D]: kernel-modules-extra: configuration source "/etc/depmod.d" does not exist
dracut[D]: kernel-modules-extra: configuration source "/lib/depmod.d" does not exist
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: zfs ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut-install: Failed to find module 'spl'
dracut[E]: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/portage/sys-kernel/gentoo-kernel-6.12.25/temp/dracut.ZxypCw/initramfs --kerneldir /lib/modules/6.12.25-gentoo-dist-hardened/ -m spl zfs amdgpu
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
...
dracut[D]: dracut cmdline:
dracut[D]: rd.md.uuid=18286aed:0f58aa00:7946ca1d:4fbf24d3
dracut[D]: root=zfs:tank/rootfs rootfstype=zfs rootflags=rw,relatime,xattr,posixacl,casesensitive
dracut[I]: Using UEFI kernel cmdline:
dracut[I]: fbcon=nodefer rd.md.uuid=18286aed:0f58aa00:7946ca1d:4fbf24d3 module.sig_enforce=1 root=zfs:tank/rootfs rootfstype=zfs rootflags=rw,relatime,xattr,posixacl,casesensitive
Signing Unsigned original image
dracut[I]: *** Creating signed UEFI image file '/var/tmp/portage/sys-kernel/gentoo-kernel-6.12.25/temp/installkernel.staging.hJsIFz4/uki.efi' done ***
Hook /usr/lib/kernel/preinst.d/50-dracut.install finished successfully
Running /usr/lib/kernel/preinst.d/99-check-diskspace.install 6.12.25-gentoo-dist-hardened /usr/src/linux-6.12.25-gentoo-dist-hardened/arch/x86/boot/bzImage...
[1;32m*[0m Checking available disk space on /efi/EFI/Linux...
[1;32m*[0m Disk space okay. Need at least 10201 KiB, found 892888 KiB.
Hook /usr/lib/kernel/preinst.d/99-check-diskspace.install finished successfully
Found UKI directory on ESP /efi
Installing Unified Kernel Image for 6.12.25-gentoo-dist-hardened...
Running /etc/kernel/postinst.d/50-eclean-kernel.install 6.12.25-gentoo-dist-hardened /efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened.efi...
[1;32m*[0m Removing old kernels ...
No outdated kernels found.
Hook /etc/kernel/postinst.d/50-eclean-kernel.install finished successfully
Running /usr/lib/kernel/postinst.d/95-efistub-uefi-mkconfig.install 6.12.25-gentoo-dist-hardened /efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened.efi...
[1;32m*[0m Updating UEFI configuration...
[1;32m*[0m Running uefi-mkconfig...
[1;32m*[0m Using kernel commands from "/etc/default/uefi-mkconfig"
[1;33m*[0m Warning! Kernel command "root=" is missing from loaded configuration!
[1;32m*[0m Creating UEFI entry "0200" for "/efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened-old.efi" found on "md127p1"
[1;33m*[0m No initramfs found for "/efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened-old.efi".
[1;32m*[0m Creating UEFI entry "01FF" for "/efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened.efi" found on "md127p1"
[1;33m*[0m No initramfs found for "/efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened.efi".
[1;32m*[0m Done
Hook /usr/lib/kernel/postinst.d/95-efistub-uefi-mkconfig.install finished successfully
Running /usr/lib/kernel/postinst.d/99-write-log.install 6.12.25-gentoo-dist-hardened /efi/EFI/Linux/gentoo-6.12.25-gentoo-dist-hardened.efi...
[1;32m*[0m Appending installed kernel to /var/log/installkernel.log...
Hook /usr/lib/kernel/postinst.d/99-write-log.install finished successfully
[A[152C [34;01m[ [32;01mok[34;01m ][0m
>>> sys-kernel/gentoo-kernel-6.12.25 merged.
However, dracut and the overall merge claim to be successful. Without looking in the logs, there's no way to tell that something went wrong until I reboot, and the most recent kernel doesn't have zfs.ko and can't mount my rootfs.
I don't have this problem if I only run
Code: Select all
# emerge --config gentoo-kernel
...
dracut[I]: *** Including module: zfs ***
...
dracut[D]: -rw-r--r-- 1 root root 316262 May 15 08:39 usr/lib/modules/6.12.25-gentoo-dist-hardened/extra/spl.ko
dracut[D]: -rw-r--r-- 1 root root 12071398 May 15 08:39 usr/lib/modules/6.12.25-gentoo-dist-hardened/extra/zfs.ko
...
This feels like a bug in something, but I'm not familiar enough with the distribution kernel stack to know what. It seems to me like dracut-install should be able to find zfs.ko and spl.ko when they're in /usr/lib/modules, and it feels like the gentoo-kernel mere should fail if dracut-install fails. I don't know what changes when I emerge zfs-kmod. I can file a bug if need be, but I wanted to start here in case I'm missing something dumb.



