mirror of
https://github.com/lukechilds/dockerpi.git
synced 2026-07-25 03:47:15 +00:00
Make echo more explicit about 2G increments
This commit is contained in:
parent
6cb5256ae7
commit
2960ba495d
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue