1. Please describe the problem: # dnf reinstall 'kernel-core*' Last metadata expiration check: 0:02:11 ago on Tue 28 Feb 2023 03:52:35 PM CET. Dependencies resolved. ================================================================================================================================================================== Package Architecture Version Repository Size ================================================================================================================================================================== Reinstalling: kernel-core x86_64 6.2.0-63.fc38 fedora 16 M Transaction Summary ================================================================================================================================================================== Total download size: 16 M Installed size: 64 M Is this ok [y/N]: y Downloading Packages: kernel-core-6.2.0-63.fc38.x86_64.rpm 12 MB/s | 16 MB 00:01 ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 8.1 MB/s | 16 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Reinstalling : kernel-core-6.2.0-63.fc38.x86_64 1/2 Running scriptlet: kernel-core-6.2.0-63.fc38.x86_64 1/2 Running scriptlet: kernel-core-6.2.0-63.fc38.x86_64 2/2 Cleanup : kernel-core-6.2.0-63.fc38.x86_64 2/2 Running scriptlet: kernel-core-6.2.0-63.fc38.x86_64 2/2 depmod: WARNING: could not open modules.order at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.order at /var/tmp/dracut.bYXLUO/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.bYXLUO/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /var/tmp/dracut.bYXLUO/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory Verifying : kernel-core-6.2.0-63.fc38.x86_64 1/2 Verifying : kernel-core-6.2.0-63.fc38.x86_64 2/2 Reinstalled: kernel-core-6.2.0-63.fc38.x86_64 Complete! 2. What is the Version-Release number of the kernel: kernel-6.2.0-63.fc38.x86_64 Additional info: The files being complained above exist in older kernels but do not exist in 6.2.0-63. I don't know if it's related to this issue, but kernel-6.2.0-63.fc38.x86_64 fails to boot for me.
This might make sense as installing kernel-core does not install a single module. you also need kernel-modules-core most likely.
Same warnings with kernel-modules-core.
# dnf reinstall kernel*6.2.0-63.fc38.x86_64 ... Running scriptlet: kernel-modules-core-6.2.0-63.fc38.x86_64 8/8 depmod: WARNING: could not open modules.order at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory Running scriptlet: kernel-core-6.2.0-63.fc38.x86_64 8/8 depmod: WARNING: could not open modules.order at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.order at /var/tmp/dracut.4w4vkF/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.4w4vkF/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /var/tmp/dracut.4w4vkF/initramfs/lib/modules/6.2.0-63.fc38.x86_64: No such file or directory ...
I confirm the issue. Reinstalling the `kernel-modules-core` package removes a number of files and fails to re-create them. The following attempts to reinstall the package do not resolve the issue. A manual action is required to restore the missing files. The issue is 100% reproducible on Fedora 37 with the latest kernel. Involved components: kernel-modules-core-6.2.8-200.fc37.x86_64 Steps to reproduce: sudo dnf -y reinstall kernel-modules-core Actual results: ... depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-200.fc37.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-200.fc37.x86_64: No such file or directory depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-200.fc37.x86_64: No such file or directory ... Workaround to restore the missing files: sudo dnf download kernel-modules-core sudo rpm --force -i kernel-modules-core-*.rpm
The same on RHEL 9.2
I'm getting something similar: # dnf -y erase kernel-core-6.3.11-200.fc38.x86_64 Dependencies resolved. ======================================================================================= Package Architecture Version Repository Size ======================================================================================= Removing: kernel-core x86_64 6.3.11-200.fc38 @updates-testing 65 M Removing dependent packages: kernel x86_64 6.3.11-200.fc38 @updates-testing 0 kernel-modules x86_64 6.3.11-200.fc38 @updates-testing 54 M kernel-modules-core x86_64 6.3.11-200.fc38 @updates-testing 29 M kernel-modules-extra x86_64 6.3.11-200.fc38 @updates-testing 2.4 M Transaction Summary ======================================================================================= Remove 5 Packages Freed space: 150 M Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Erasing : kernel-modules-extra-6.3.11-200.fc38.x86_64 1/5 Running scriptlet: kernel-modules-extra-6.3.11-200.fc38.x86_64 1/5 Erasing : kernel-6.3.11-200.fc38.x86_64 2/5 Running scriptlet: kernel-6.3.11-200.fc38.x86_64 2/5 Erasing : kernel-modules-6.3.11-200.fc38.x86_64 3/5 Running scriptlet: kernel-modules-6.3.11-200.fc38.x86_64 3/5 Erasing : kernel-modules-core-6.3.11-200.fc38.x86_64 4/5 Running scriptlet: kernel-modules-core-6.3.11-200.fc38.x86_64 4/5 Running scriptlet: kernel-core-6.3.11-200.fc38.x86_64 5/5 Erasing : kernel-core-6.3.11-200.fc38.x86_64 5/5 warning: file modules.builtin.modinfo: remove failed: No such file or warning: file modules.builtin: remove failed: No such file or directo Running scriptlet: kernel-core-6.3.11-200.fc38.x86_64 5/5 Verifying : kernel-6.3.11-200.fc38.x86_64 1/5 Verifying : kernel-core-6.3.11-200.fc38.x86_64 2/5 Verifying : kernel-modules-6.3.11-200.fc38.x86_64 3/5 Verifying : kernel-modules-core-6.3.11-200.fc38.x86_64 4/5 Verifying : kernel-modules-extra-6.3.11-200.fc38.x86_64 5/5 Removed: kernel-6.3.11-200.fc38.x86_64 kernel-core-6.3.11-200.fc38.x86_64 kernel-modules-6.3.11-200.fc38.x86_64 kernel-modules-core-6.3.11-200.fc38.x86_64 kernel-modules-extra-6.3.11-200.fc38.x86_64 Complete!
It appears to be fixed here: https://src.fedoraproject.org/rpms/kernel/c/05344083c3335a010ac0ca4bd9f3f222750cfa05 > * Wed Jul 19 2023 Justin M. Forbes <jforbes> [6.4.4-0] > - move ownership of /lib/modules/<ver>/ to kernel-core (Thorsten Leemhuis) > - Let kernel-modules-core own the files depmod generates. (Thorsten Leemhuis)
This message is a reminder that Fedora Linux 38 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21. 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 '38'. 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 38 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 38 entered end-of-life (EOL) status on 2024-05-21. Fedora Linux 38 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.