From 2960ba495dccf9ca01b832410705c64d329a5f00 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Wed, 30 Dec 2020 11:53:52 +0000 Subject: [PATCH] Make echo more explicit about 2G increments --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f2325a0..000585c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"