Make echo more explicit about 2G increments

This commit is contained in:
Ben Hardill 2020-12-30 11:53:52 +00:00
parent 6cb5256ae7
commit 2960ba495d
No known key found for this signature in database
GPG key ID: 74DD076979ABB1E7

View file

@ -34,7 +34,7 @@ elif [ "${target}" = "pi2" ]; then
nic='-netdev user,id=net0,hostfwd=tcp::5022-:22 -device usb-net,netdev=net0'
elif [ "${target}" = "pi3" ]; then
echo "Rounding image size up to a multiple of 2"
echo "Rounding image size up to a multiple of 2G"
image_size=`du -m $image_path | cut -f1`
new_size=$(( ( ( image_size / 2048 ) + 1 ) * 2 ))
echo "from ${image_size}M to ${new_size}G"