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: POST
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:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-16 09:36 UTC by Petr Sklenar
Modified: 2026-03-04 04:54 UTC (History)
19 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
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.


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