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

pull/1401/head
longpanda 2 years ago
parent 2ad69decad
commit 28998edd94

@ -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

Loading…
Cancel
Save