From 8f77326479afb0d868aade227bf174f147979f31 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 5 Jul 2018 12:27:33 +0200 Subject: [PATCH] dracut-init.sh: fix instmods with zero input instmods < /dev/null should not error --- dracut-init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dracut-init.sh b/dracut-init.sh index 9891836ad..50d23e2d1 100644 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -993,6 +993,10 @@ instmods() { set -- "${args[@]}" fi + if (($# == 0)); then + return 0 + fi + $DRACUT_INSTALL \ ${initdir:+-D "$initdir"} \ ${loginstall:+-L "$loginstall"} \ -- 2.47.3