2022-06-22 00:21:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2022-06-26 19:24:56 +00:00
|
|
|
{% if extra_iso_mode == "podman" %}
|
2022-06-27 07:26:42 +00:00
|
|
|
{{ lorax_pkg_cmd }} | tee -a {{ log_path }}
|
|
|
|
mkdir -p {{ compose_work_iso_dir }}/{{ arch }}
|
|
|
|
cd {{ compose_work_iso_dir }}/{{ arch }}
|
|
|
|
{% else %}
|
|
|
|
cd /builddir
|
2022-06-23 20:12:53 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2022-06-22 00:21:37 +00:00
|
|
|
|
|
|
|
if ! TEMPLATE="$($(head -n1 $(which lorax) | cut -c3-) -c 'import pylorax; print(pylorax.find_templates())')"; then
|
|
|
|
TEMPLATE="/usr/share/lorax"
|
|
|
|
fi
|
|
|
|
|
2022-06-27 07:26:42 +00:00
|
|
|
{{ make_image }} | tee -a {{ log_path }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:26:42 +00:00
|
|
|
{{ isohybrid }} | tee -a {{ log_path }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:26:42 +00:00
|
|
|
{{ implantmd5 }} | tee -a {{ log_path }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:26:42 +00:00
|
|
|
{{ make_manifest }} | tee -a {{ log_path }}
|
2022-06-23 20:12:53 +00:00
|
|
|
|