dracut-init.sh: fix instmods with zero input

instmods < /dev/null

should not error
master
Harald Hoyer 2018-07-05 12:27:33 +02:00
parent ca77afdeb3
commit 8f77326479
1 changed files with 4 additions and 0 deletions

View File

@ -993,6 +993,10 @@ instmods() {
set -- "${args[@]}"
fi

if (($# == 0)); then
return 0
fi

$DRACUT_INSTALL \
${initdir:+-D "$initdir"} \
${loginstall:+-L "$loginstall"} \