Description of problem: The dracut installation script does not set the expected value of `nullglob`. If the shell option is set and not correctly cleaned by any of the scripts executed by dracut, the installation of the `prefixdevname` module might fail. The failure can be observed given that the /etc/systemd/network does not exists, which causes the glob expression to be expanded to a null string, and thus no arguments are passed to the `inst_multiple` call. Steps to Reproduce: 1. Make sure the /etc/systemd/network does not exists 2. Use `shopt -s nullglob` in one of the /usr/lib/dracut/modules.d/ scripts that are executed before `prefixdevname`, simulating that the nullglob is set and not cleaned afterwards. 3. Run `dracut -f` Actual results: ``` dracut-install: No SOURCE argument given Usage: dracut-install -D DESTROOTDIR [-r SYSROOTDIR] [OPTION]... -a SOURCE... ``` Expected results: No failure reported. Additional info: The `shopt -s nullglob` leak will might happen due to a specific system setup in which the `10i18n` calls the `findkeymap` function recursively. Bugzilla reporting this problem to the dracut team: - https://bugzilla.redhat.com/show_bug.cgi?id=2047654 I've already submitted a patch fixing this behaviour: - https://github.com/msekletar/prefixdevname/pull/1/files
This should be resolved in dracut: https://github.com/dracutdevs/dracut/pull/1762