Bug 2173100 - dracut dracut-059-1.fc39 and newer breaks kernel builds
Summary: dracut dracut-059-1.fc39 and newer breaks kernel builds
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Pavel Valena
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-23 22:30 UTC by Justin M. Forbes
Modified: 2024-11-27 21:07 UTC (History)
6 users (show)

Fixed In Version: dracut-059-3.fc39
Clone Of:
Environment:
Last Closed: 2024-11-27 21:07:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Koji dracut output with debug passed. (18.93 KB, text/plain)
2023-02-24 14:39 UTC, Justin M. Forbes
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github dracutdevs dracut pull 2237 0 None open fix(dracut.sh): kmoddir does not handle trailing / 2023-02-24 18:44:23 UTC

Description Justin M. Forbes 2023-02-23 22:30:11 UTC
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.

Comment 1 Justin M. Forbes 2023-02-24 14:39:25 UTC
Created attachment 1946206 [details]
Koji dracut output with debug passed.

Comment 2 Pavel Valena 2023-02-24 18:18:49 UTC
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.

Comment 3 Fedora Release Engineering 2023-08-16 08:06:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 4 Laszlo 2024-05-23 12:35:00 UTC
Should be resolved in dracut 60+ . Please retest.

Comment 5 Aoife Moloney 2024-11-08 10:48:16 UTC
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.

Comment 6 Aoife Moloney 2024-11-27 21:07:24 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.