View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009571 | Rocky-Linux-9 | dracut | public | 2025-05-30 16:59 | 2025-05-30 17:04 |
Reporter | Vincent Roch | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | amd64 | OS | Rocky Linux | OS Version | 9.5 |
Summary | 0009571: Dracut sources .conf files from the root directory | ||||
Description | Rebuilding 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 | ||||
Tags | No tags attached. | ||||
Additional Information: The problem that files are found under / is caused by the variable $add_config, which is empty. | |
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 |