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

28 lines
573 B
Bash
Raw Normal View History

2022-06-22 00:21:37 +00:00
#!/bin/bash
set -ex
{% 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 }}
{% 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 }}
2022-06-23 22:29:22 +00:00
cp /builddir/*.log {{ compose_work_iso_dir }}/{{ arch }}
{% endif %}