2022-06-22 00:21:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2022-06-23 20:12:53 +00:00
|
|
|
{% if inside_podman %}
|
|
|
|
mkdir /builddor
|
|
|
|
{% endif %}
|
|
|
|
|
2022-06-22 00:21:37 +00:00
|
|
|
cd /builddir
|
|
|
|
|
|
|
|
if ! TEMPLATE="$($(head -n1 $(which lorax) | cut -c3-) -c 'import pylorax; print(pylorax.find_templates())')"; then
|
|
|
|
TEMPLATE="/usr/share/lorax"
|
|
|
|
fi
|
|
|
|
|
|
|
|
{{ make_image }}
|
|
|
|
|
|
|
|
{{ isohybrid }}
|
|
|
|
|
|
|
|
{{ implantmd5 }}
|
|
|
|
|
|
|
|
{{ make_manifest }}
|
2022-06-23 20:12:53 +00:00
|
|
|
|
|
|
|
{% if inside_podman %}
|
|
|
|
mkdir -p {{ compose_work_iso_dir }}/{{ arch }}
|
|
|
|
cp /builddir/*.iso {{ compose_work_iso_dir }}/{{ arch }}
|
|
|
|
cp /builddir/*.iso.manifest {{ compose_work_iso_dir }}/{{ arch }}
|
|
|
|
{% endif %}
|