View Issue Details

IDProjectCategoryView StatusLast Update
0009571Rocky-Linux-9dracutpublic2025-05-30 17:04
ReporterVincent Roch Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformamd64OSRocky LinuxOS Version9.5
Summary0009571: Dracut sources .conf files from the root directory
DescriptionRebuilding the initramfs image with dracut, causes an attempt to source / execute all files ending with .conf.

[root@static ~]# echo ‘echo “test”; invalid_cmd’ > /i.conf
[root@static ~]# dracut -f
test
/i.conf: line 1: invalid_cmd: command not found

After my own debugging I was able to determine that this problem originates from /usr/bin/dracut line 965-969.

The subcommand dropindirs_sort ( line 349-364 ) searches in $@ for files ending with $1 ( in this case ‘.conf’ ) and returns them sorted.
These files are then sourced and executed.



Steps To Reproduce- Installing Rocky Linux 9.5 on an amd64 system
- Create any .conf file under / and fill it with content
- execute dracut -f
TagsNo tags attached.

Activities

Vincent Roch

Vincent Roch

2025-05-30 17:04

reporter   ~0010231

Additional Information: The problem that files are found under / is caused by the variable $add_config, which is empty.

Issue History

Date Modified Username Field Change
2025-05-30 16:59 Vincent Roch New Issue
2025-05-30 16:59 Vincent Roch Tag Attached: dhcp
2025-05-30 17:04 Vincent Roch Note Added: 0010231
2025-05-30 17:04 Vincent Roch Tag Detached: dhcp