Bug 2440160 - %posttrans scriptlet: grep: /var/tmp/dracut.d3UjKbF/initramfs/etc/shadow: No such file or directory
Summary: %posttrans scriptlet: grep: /var/tmp/dracut.d3UjKbF/initramfs/etc/shadow: No ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Pavel Valena
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2403493 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-16 09:36 UTC by Petr Sklenar
Modified: 2026-03-23 00:15 UTC (History)
20 users (show)

Fixed In Version: dracut-108-6.fc44
Clone Of:
Environment:
Last Closed: 2026-03-23 00:15:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.

Comment 10 Fedora Update System 2026-03-23 00:15:18 UTC
FEDORA-2026-f35eef68bb (dracut-108-6.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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