|
|
@ -60,13 +60,13 @@ function template_kickstart_files() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# This function templates a single kickstart file. |
|
|
# This function templates a single kickstart file. |
|
|
# It takes two arguments: the path to the template file and the current scenario. |
|
|
# It takes two arguments: the path to the template file and the bootc image. |
|
|
# It uses envsubst to replace placeholders with actual values. |
|
|
# It uses envsubst to replace placeholders with actual values. |
|
|
function template_kickstart_file () { |
|
|
function template_kickstart_file () { |
|
|
local template="$1" |
|
|
local template="$1" |
|
|
local bootc_image="$2" |
|
|
local bootc_image="$2" |
|
|
local template_name="$(basename "$template" .ks)" |
|
|
local template_name="$(basename "$template" .ks)" |
|
|
local output_file="$output_dir/${template_name}/${type}.ks" |
|
|
local output_file="$output_dir/${template_name}/baremetal.ks" |
|
|
|
|
|
|
|
|
echo "Templating $template_name to $output_file" |
|
|
echo "Templating $template_name to $output_file" |
|
|
( |
|
|
( |
|
|
|