Commit 28998edd authored by longpanda's avatar longpanda
Browse files

Add check for size in CreatePersistentImg.sh (#1384)

parent 2ad69dec
...@@ -56,8 +56,13 @@ fi ...@@ -56,8 +56,13 @@ fi
# check size # check size
if echo $size | grep -q "^[0-9][0-9]*$"; then if echo $size | grep -q "^[0-9][0-9]*$"; then
if [ $size -le 1 ]; then vtMinSize=1
echo "Invalid size $size" if echo $fstype | grep -q '^xfs$'; then
vtMinSize=16
fi
if [ $size -lt $vtMinSize ]; then
echo "size too small ($size)"
exit 1 exit 1
fi fi
else else
......
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