Bug 2440160

Summary: %posttrans scriptlet: grep: /var/tmp/dracut.d3UjKbF/initramfs/etc/shadow: No such file or directory
Product: [Fedora] Fedora Reporter: Petr Sklenar <psklenar>
Component: dracutAssignee: Pavel Valena <pvalena>
Status: ON_QA --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: acaringi, adscvr, airlied, dracut-maint-list, hans, hpa, jamacku, jforbes, kernel-maint, linville, lnykryn, masami256, mchehab, mikhail.v.gavrilov, nickolascarr, pbrobinson, ptalbert, pvalena, steved, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2026-02-16 09:36:24 UTC
1. Please describe the problem:
there is an postscript issue during `dnf upgrade`

2. What is the Version-Release number of the kernel:

rpm -q kernel
kernel-6.19.0-59.fc44.x86_64
kernel-6.19.0-300.fc44.x86_64
kernel-6.19.0-301.fc44.x86_64


4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

its easy to reproduce:

root@fedora:~# /bin/kernel-install add 6.19.0-301.fc44.x86_64 /lib/modules/6.19.0-301.fc44.x86_64/vmlinuz 
grep: /var/tmp/dracut.deHNopd/initramfs/etc/shadow: No such file or directory


----

dnf reinstall kernel-core
<snip />

Running transaction
[1/4] Verify package files                                                                                       100% |  17.0   B/s |   1.0   B |  00m00s
[2/4] Prepare transaction                                                                                        100% |  24.0   B/s |   2.0   B |  00m00s
[3/4] Reinstalling kernel-core-0:6.19.0-301.fc44.x86_64                                                          100% | 108.2 MiB/s |  29.8 MiB |  00m00s
[4/4] Removing kernel-core-0:6.19.0-301.fc44.x86_64                                                              100% |   0.0   B/s |  17.0   B |  00m19s
>>> Running %posttrans scriptlet: kernel-core-0:6.19.0-301.fc44.x86_64
>>> Finished %posttrans scriptlet: kernel-core-0:6.19.0-301.fc44.x86_64
>>> Scriptlet output:
>>> grep: /var/tmp/dracut.d3UjKbF/initramfs/etc/shadow: No such file or directory
>>> 
Complete!


6. Are you running any modules that not shipped with directly Fedora's kernel?:
no



Reproducible: Always

Comment 1 Justin M. Forbes 2026-02-24 14:17:04 UTC
Is this still happening?

It is installing the kernel update, but the kernel update simply calls kernel-install for post, which makes the appropriate calls to dracut. I will assign this to dracut.

Comment 2 Hans de Goede 2026-02-24 18:47:03 UTC
I can confirm that this is a dracut error message, the error also gets printed when simply running "sudo dracut -f" to regenerate the initrd for the current kernel.

Comment 3 Peter Robinson 2026-02-26 13:03:30 UTC
I've seen this across a bunch of my devices.

Comment 4 Pavel Valena 2026-02-26 16:07:42 UTC
Fixed by: https://github.com/dracut-ng/dracut-ng/pull/1774

Just ignores the error. I can backport this.

Comment 6 Thorsten Leemhuis 2026-03-10 14:06:20 UTC
*** Bug 2403493 has been marked as a duplicate of this bug. ***

Comment 7 Pavel Valena 2026-03-12 03:59:33 UTC
Build: https://koji.fedoraproject.org/koji/taskinfo?taskID=143271670

Comment 8 Fedora Update System 2026-03-12 04:23:55 UTC
FEDORA-2026-f35eef68bb (dracut-108-6.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f35eef68bb

Comment 9 Fedora Update System 2026-03-13 01:38:03 UTC
FEDORA-2026-f35eef68bb has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-f35eef68bb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-f35eef68bb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.