toolkit/iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh

25 lines
549 B
Bash
Raw Normal View History

2022-06-22 00:21:37 +00:00
#!/bin/bash
set -ex
{% 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-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:29:45 +00:00
{% endif %}
2022-06-22 00:21:37 +00:00
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 }}