Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 468 Bytes
#!/bin/bash
set -x
CHANNEL=${1:-edge}
PLATFORMS=${2:-"dragonboard pc-amd64 pc-i386 pi3 pi2"}
for platform in $PLATFORMS; do
if [[ "$platform" == pc* ]]; then
image_option="--image-size 3G"
else
image_option=""
fi
output="./images/${platform}-${CHANNEL}"
sudo rm -rf "$output" && mkdir -p "$output"
sudo ubuntu-image "$image_option" \
-c "$CHANNEL" \
-O "$output" \
"./models/${platform}.model"
done