Commit 9e3244f4 authored by Ryan Jackson's avatar Ryan Jackson

Fix tweakmbr() to handle the case where a valid MBR doesn't exist.

parent e4d96c5d
......@@ -59,7 +59,7 @@ tweakmbr()
size=`echo -e 'u\np\nq' | fdisk $disk 2> /dev/null| \
sed -n "s#^${disk}1 *. *[0-9]* *[0-9]* *\([0-9]*\).*\\$#\1#p"`
size=`expr $size '*' 2`
[ -n "$size" ] && size=`expr $size '*' 2`
case ${size}s in
6281352s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment