diff --git a/dracut b/dracut index 6b67dc03..0324ac53 100755 --- a/dracut +++ b/dracut @@ -237,8 +237,9 @@ while (($# > 0)); do ;; -*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;; *) - if ! [[ $outfile ]]; then + if ! [[ $outfile_set ]]; then outfile=$1 + outfile_set=y elif [[ $kernel = "unset" ]]; then kernel=$1 else