From 459b8927e1bced532a468ba4c98da97aed599656 Mon Sep 17 00:00:00 2001
From: Bartosz Bezak <bartosz@stackhpc.com>
Date: Thu, 23 Feb 2023 13:06:53 +0100
Subject: [PATCH] Allow to override CirrOS version in init-runonce

This is to allow us to customize for CI.

Change-Id: Ie45860fa2228c21ce45ac8118267fb8304129802
---
 tools/init-runonce | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/init-runonce b/tools/init-runonce
index c1dade5f46..f551186564 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -19,7 +19,7 @@ fi
 # to be created.
 
 ARCH=$(uname -m)
-CIRROS_RELEASE=0.6.1
+CIRROS_RELEASE=${CIRROS_RELEASE:-0.6.1}
 IMAGE_PATH=/opt/cache/files/
 IMAGE_URL=https://github.com/cirros-dev/cirros/releases/download/${CIRROS_RELEASE}/
 IMAGE=cirros-${CIRROS_RELEASE}-${ARCH}-disk.img
-- 
GitLab