OSDN Git Service

Merge remote-tracking branch 'x86/kitkat-x86' into marshmallow-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 18 Jan 2016 17:08:54 +0000 (01:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 18 Jan 2016 17:08:54 +0000 (01:08 +0800)
install/scripts/1-install

index 411a768..080a965 100644 (file)
@@ -194,9 +194,9 @@ create_img()
                rm -f $2
        fi
        dialog --title " Question " --nook --nocancel --inputbox \
-               "\nPlease input the size of the $bname in MB (max 2047):" 8 63 $1 2> $tempfile
+               "\nPlease input the size of the $bname in MB:" 8 63 $1 2> $tempfile
        size=`cat $tempfile`
-       [ 0$size -le 0 -o 0$size -gt 2047 ] && size=2047
+       [ 0$size -le 0 ] && size=1024
        ( dd bs=1M count=$size if=/dev/zero | pv -ns ${size}m | dd of=$2 ) 2>&1 \
                | progress_bar "Creating $bname" "Expect to write $size MB..."
 }