dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
586 stars 395 forks source link

dracut is blocked when --force-drivers is set empty #2579

Open jiayi0118 opened 7 months ago

jiayi0118 commented 7 months ago

Issue Description

Call the following command, dracut will be blocked.

# dracut --force-drivers " " ./test.img

Version

master

Analysis

The code locates in: https://github.com/dracutdevs/dracut/blob/4971f443726360216a4ef3ba8baea258a1cd0f3b/dracut-init.sh#L1083

The implementation will read from input when instmods has no kernel modules assigned.

On the other hand, the following usage of dracut seems legal and the blocking issue will be resolved.

# dracut --force-drivers " " ./test.img <<< xxx

What I want to ask is that whether this issue is a bug or just a rare usage?

stale[bot] commented 2 months ago

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.