In 2 of 3 my PC regular kernel package updates worked well, however on one of them, the update fails. Both kernel 7.0.4 and 7.0.6 packages have same issue. So this PC stuck on 6.19.9.
ilja@fedora:~$ sudo dnf update
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
kernel x86_64 0:7.0.6-200.fc44 updates 0.0 B
kernel-core x86_64 0:7.0.6-200.fc44 updates 99.1 MiB
kernel-modules x86_64 0:7.0.6-200.fc44 updates 99.5 MiB
kernel-modules-core x86_64 0:7.0.6-200.fc44 updates 72.7 MiB
kernel-modules-extra x86_64 0:7.0.6-200.fc44 updates 4.4 MiB
Transaction Summary:
Installing: 5 packages
Total size of inbound packages is 201 MiB. Need to download 201 MiB.
After this operation, 276 MiB extra will be used (install 276 MiB, remove 0 B).
Is this ok [y/N]: y
[1/5] kernel-0:7.0.6-200.fc44.x86_64 100% | 263.8 KiB/s | 233.2 KiB | 00m01s
[2/5] kernel-core-0:7.0.6-200.fc44.x86_64 100% | 2.4 MiB/s | 20.4 MiB | 00m09s
[3/5] kernel-modules-extra-0:7.0.6-200.fc44.x86_64 100% | 3.0 MiB/s | 4.7 MiB | 00m02s
[4/5] kernel-modules-core-0:7.0.6-200.fc44.x86_64 100% | 4.2 MiB/s | 74.4 MiB | 00m18s
[5/5] kernel-modules-0:7.0.6-200.fc44.x86_64 100% | 3.8 MiB/s | 101.5 MiB | 00m26s
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[5/5] Total 100% | 7.3 MiB/s | 201.2 MiB | 00m28s
Running transaction
[1/7] Verify package files 100% | 2.0 B/s | 5.0 B | 00m02s
[2/7] Prepare transaction 100% | 7.0 B/s | 5.0 B | 00m01s
[3/7] Installing kernel-core-0:7.0.6-200.fc44.x86_64 100% | 36.3 MiB/s | 29.6 MiB | 00m01s
[4/7] Installing kernel-modules-core-0:7.0.6-200.fc44.x86_64 100% | 43.0 MiB/s | 73.3 MiB | 00m02s
[5/7] Installing kernel-modules-0:7.0.6-200.fc44.x86_64 100% | 5.8 MiB/s | 100.0 MiB | 00m17s
[6/7] Installing kernel-modules-extra-0:7.0.6-200.fc44.x86_64 100% | 277.9 KiB/s | 4.4 MiB | 00m16s
[7/7] Installing kernel-0:7.0.6-200.fc44.x86_64 100% | 2.0 B/s | 124.0 B | 00m46s
>>> Running %posttrans scriptlet: kernel-core-0:7.0.6-200.fc44.x86_64
>>> Finished %posttrans scriptlet: kernel-core-0:7.0.6-200.fc44.x86_64
>>> Scriptlet output:
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>> dracut-install: ERROR: cannot mmap '/var/tmp/dracut.dOlGFcB/initramfs/usr/lib64/libnss_myhostname.so.2;69c039c9': Invalid argument
>>> dracut-install: ERROR: cannot mmap '/var/tmp/dracut.dOlGFcB/initramfs/usr/lib64/libnss_resolve.so.2;69c039c9': Invalid argument
>>> dracut-install: ERROR: cannot mmap '/var/tmp/dracut.dOlGFcB/initramfs/usr/lib64/libnss_systemd.so.2;69c039c9': Invalid argument
>>> dracut[F]: Resolving executable dependencies failed
>>> /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
>>>
Complete!
ilja@fedora:~$
It’s to big for me to be sure, since not an expert in this area, but the final error looks the same as above - “Resolving executable dependencies failed”
Those files look like the problem. They may be temporary files from some process which were never cleaned up. Can you try moving them to your home directory and see if that resolves the problem?
I’ve removed the folder /usr/lib64/*69c039c9. And dracut ... command now works well then. Grub did not pick it up, but after stupid dnf remove / upgrade, it all worked as expected. Huge thanks!
I just wonder now, if it is something worth reporting as a bug to dracut-ng team, or it’s just a quirk of specific machine?
file /usr/lib/.build-id/2f/152b00e703dce24f8013dea94674aa58a76bc1;69c039c9 is not owned by any package
file /usr/lib/.build-id/79/c0d88b55fdc0f54b682a3c9afa08b0ed655fb5;69c039c9 is not owned by any package
file /usr/lib/.build-id/aa/8a58e5f218904ab1dfff96610fd1f086dbb8e7;69c039c9 is not owned by any package
file /usr/lib/.build-id/dd/6d66a7158620042febadb38e6a876be3d09599;69c039c9 is not owned by any package
file /usr/lib/.build-id/fc/f2d8c52748c7c29bcd48a969dca77b86dac844;69c039c9 is not owned by any package
You probably got lucky being not exposed to the same issue.
Would be glad to also post an issue to Dracut Github, if it helps others, but realized being not competent enough to clearly explain what was the issue about.