From d0e77ecd54541749b22c19ea88f52cdf1110000b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 11 Sep 2025 18:59:43 +0000 Subject: [PATCH] wip --- pxe-boot/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pxe-boot/install.sh b/pxe-boot/install.sh index 1f7a924..b4110ae 100755 --- a/pxe-boot/install.sh +++ b/pxe-boot/install.sh @@ -76,6 +76,7 @@ function template_kickstart_file () { echo "Templating $template_name to $output_file" ( + export SCENARIO_NAME="$scenario" if [ -f "auth.json" ]; then export AUTH_JSON_CONTENT="$(cat auth.json)" fi @@ -89,7 +90,7 @@ function template_kickstart_file () { export FLIGHTCTL_CONFIG_CONTENT="$(yq e ".default-labels += $labels_json" config.yaml)" fi envsubst < "$template" > "/tmp/tmp.$$.ks" - declare +x AUTH_JSON_CONTENT FLIGHTCTL_CONFIG_CONTENT + declare +x AUTH_JSON_CONTENT FLIGHTCTL_CONFIG_CONTENT SCENARIO_NAME ) install -m 0644 -o root -g root "/tmp/tmp.$$.ks" "$output_file" }