From: Harald Hoyer Date: Tue, 29 Mar 2011 08:25:24 +0000 (+0200) Subject: dracut: don't skip zero-length string outfile argument X-Git-Tag: 010~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dd37f13c5cf507dbc6fd68605784ce350ef15cd;p=thirdparty%2Fdracut.git dracut: don't skip zero-length string outfile argument When '' was passed as outfile, dracut generated name with following pattern: /boot/initramfs-${kernel}.img With commit 486a1b9324d6fc7bc534d8147d64b8b259692c46 dracut skips '' argument. --- diff --git a/dracut b/dracut index 6b67dc039..0324ac531 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