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:40:28 +00:00
|
|
|
{{ lorax_pkg_cmd }}
|
2022-06-27 07:26:42 +00:00
|
|
|
mkdir -p {{ compose_work_iso_dir }}/{{ arch }}
|
2022-06-28 01:35:11 +00:00
|
|
|
cd {{ compose_work_iso_dir }}/{{ arch }}
|
2022-06-28 17:08:17 +00:00
|
|
|
test -f {{ isoname }} && { echo "ERROR: ISO ALREDY EXISTS!"; exit 1; }
|
2022-06-27 07:26:42 +00:00
|
|
|
{% 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:40:28 +00:00
|
|
|
{{ make_image }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:40:28 +00:00
|
|
|
{{ isohybrid }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:40:28 +00:00
|
|
|
{{ implantmd5 }}
|
2022-06-22 00:21:37 +00:00
|
|
|
|
2022-06-27 07:40:28 +00:00
|
|
|
{{ make_manifest }}
|
2022-06-23 20:12:53 +00:00
|
|
|
|
2022-08-05 08:24:49 +00:00
|
|
|
{% if extra_iso_mode == "podman" %}
|
|
|
|
# symlink to unversioned image name
|
|
|
|
ln -sf {{ isoname }} {{ generic_isoname }}
|
|
|
|
ln -sf {{ isoname }}.manifest {{ generic_isoname }}.manifest
|
|
|
|
|
|
|
|
{% endif %}
|