From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= Subject: [PATCHv2] dracut: don't skip zero-length string outfile argument Date: Tue, 29 Mar 2011 01:21:56 +0200 Message-ID: <1301354516-14193-1-git-send-email-aidecoe@aidecoe.name> References: <1301352736-5715-1-git-send-email-aidecoe@aidecoe.name> Return-path: In-Reply-To: <1301352736-5715-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= When '' was passed as outfile, dracut generated name with following pattern: /boot/initramfs-$kernel With commit 486a1b9324d6fc7bc534d8147d64b8b259692c46 dracut skips '' argument. --- dracut | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dracut b/dracut index 6b67dc0..c16b222 100755 --- a/dracut +++ b/dracut @@ -237,7 +237,7 @@ while (($# > 0)); do ;; -*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;; *) - if ! [[ $outfile ]]; then + if ! [[ ${outfile+x} ]]; then outfile=$1 elif [[ $kernel = "unset" ]]; then kernel=$1 -- 1.7.4.1