dracut-init.sh: fix instmods with zero input
instmods < /dev/null should not errormaster
parent
ca77afdeb3
commit
8f77326479
|
|
@ -993,6 +993,10 @@ instmods() {
|
|||
set -- "${args[@]}"
|
||||
fi
|
||||
|
||||
if (($# == 0)); then
|
||||
return 0
|
||||
fi
|
||||
|
||||
$DRACUT_INSTALL \
|
||||
${initdir:+-D "$initdir"} \
|
||||
${loginstall:+-L "$loginstall"} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue