diff --git a/.github/workflows/iso.yml b/.github/workflows/iso.yml index 985c635..293e01a 100644 --- a/.github/workflows/iso.yml +++ b/.github/workflows/iso.yml @@ -39,6 +39,7 @@ jobs: dnf install -y \ lorax \ xorriso \ + podman \ git \ rpm-ostree @@ -57,6 +58,8 @@ jobs: --macboot --noupgrade \ --repo /etc/yum.repos.d/fedora.repo \ --repo /etc/yum.repos.d/fedora-updates.repo \ + --add-template ${GITHUB_WORKSPACE}/lorax_templates/embed_image.tmpl \ + --add-template ${GITHUB_WORKSPACE}/lorax_templates/set_installer.tmpl \ --rootfs-size 9 \ ./results/ diff --git a/lorax_templates/embed_image.tmpl b/lorax_templates/embed_image.tmpl new file mode 100644 index 0000000..4ed41cf --- /dev/null +++ b/lorax_templates/embed_image.tmpl @@ -0,0 +1,4 @@ +<%page args="root"/> +runcmd podman pull ghcr.io/ublue-os/base-main:39 +runcmd podman save -f oci-archive -o ${root}/base-main-39.tar ghcr.io/ublue-os/base-main:39 +runcmd podman rmi ghcr.io/ublue-os/base-main:39 \ No newline at end of file diff --git a/lorax_templates/set_installer.tmpl b/lorax_templates/set_installer.tmpl new file mode 100644 index 0000000..41a71a9 --- /dev/null +++ b/lorax_templates/set_installer.tmpl @@ -0,0 +1 @@ +append usr/share/anaconda/interactive-defaults.ks "ostreecontainer --url=file:///base-main-39.tar --transport=oci-archive --no-signature-verification" \ No newline at end of file