This commit is contained in:
Philippe Caseiro 2023-01-04 10:20:27 +01:00
parent cfd95f58f9
commit 218404f798
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/bin/sh
FL_VERSIONS="current 3374.2.0"
MATCHBOX_DIR="/var/lib/matchbox"
ASSETS_DIR="${MATCHBOX_DIR}/assets/"
echo "Provisionning matchbox with flatcar images"
echo " * Current stable image (try 1)"
for version in ${FL_VERSIONS}; do
while ! bash -x /usr/local/bin/get-flatcar stable ${version} ${ASSETS_DIR}; do
sleep 1
echo " * ${version} stable image (try ${item})"
if [ "${tout}" -eq "${item}" ]; then
break
exit 1
fi
item=$((item+1))
done
done