From 6a06c5a71e4b7a5f980c8e7ec4b2fd3424e61539 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 4 Jan 2023 10:17:20 +0100 Subject: [PATCH] fup --- .../conf/mathcbox/initmatchbox.start | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 recipes/alpine/provisionning/conf/mathcbox/initmatchbox.start diff --git a/recipes/alpine/provisionning/conf/mathcbox/initmatchbox.start b/recipes/alpine/provisionning/conf/mathcbox/initmatchbox.start new file mode 100644 index 0000000..e7feaf7 --- /dev/null +++ b/recipes/alpine/provisionning/conf/mathcbox/initmatchbox.start @@ -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 \ No newline at end of file