Re: [PATCH] dracut: don't skip zero-length string outfile argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 29.03.2011 01:22, schrieb Amadeusz ÅoÅnowski:
> Excerpts from Amadeusz ÅoÅnowski's message of Tue Mar 29 00:52:16 +0200 2011:
>> +outfile="unset"
> 
> This is bad for file.

used this:

diff --git a/dracut b/dracut
index 6b67dc0..0324ac5 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
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux