Description of problem: Starting with Fedora 38, kernel builds call to dracut to build a UKI. See https://fedoraproject.org/wiki/Changes/Unified_Kernel_Support_Phase_1 This was working fine until the dracut updates this week. Now x86_64 is failing with: + dracut --conf=/builddir/build/SOURCES/dracut-virt.conf --confdir=/tmp/tmp.WxC1nQa2D2 --verbose --kver 6.2.0-63.fc39.x86_64+debug --kmoddir /builddir/build/BUILDROOT/kernel-6.2.0-63.fc39.x86_64/lib/modules/6.2.0-63.fc39.x86_64+debug/ --logfile=/tmp/tmp.hyHNF2DrN5 --uefi --kernel-image /builddir/build/BUILD/kernel-6.2/linux-6.2.0-63.fc39.x86_64/arch/x86/boot/bzImage --kernel-cmdline 'console=tty0 console=ttyS0' /builddir/build/BUILDROOT/kernel-6.2.0-63.fc39.x86_64/lib/modules/6.2.0-63.fc39.x86_64+debug/vmlinuz-virt.efi dracut: drivers_dir path set via -k/--kmoddir must contain "/lib/modules/" as a parent of your kernel module directory, dracut: or modules may not be placed in the correct location inside the initramfs. dracut: was given: /builddir/build/BUILDROOT/kernel-6.2.0-63.fc39.x86_64/lib/modules/6.2.0-63.fc39.x86_64+debug/ dracut: expected: /builddir/build/BUILDROOT/kernel-6.2.0-63.fc39.x86_64/lib/modules/6.2.0-63.fc39.x86_64+debug/lib/modules/6.2.0-63.fc39.x86_64+debug dracut: Please move your modules into the correct directory structure and pass the new location, dracut: or set DRACUT_KMODDIR_OVERRIDE=1 to ignore this check. error: Bad exit status from /var/tmp/rpm-tmp.MU2Js2 (%build) As you can see, this breaks the kernel build. To verify that it was in fact the dracut update, and not something changed in kernel, I did scratch build of the srpm from kernel-6.2.0-63.fc39. It built successfully on Monday, Feb 20, but the same SRPM fails with the above error now. Both Fedora and ELN/RHEL kernels are failing.
Created attachment 1946206 [details] Koji dracut output with debug passed.
Culprit is the trailing `/`, which dracut can't handle, unfortunately: https://github.com/dracutdevs/dracut/issues/2236 I will submit an upstream fix, and patch in Rawhide as well.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.
Should be resolved in dracut 60+ . Please retest.
This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26. Fedora Linux 39 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.