From 4da160c60817a2d0fae2197194cae525c91ab6ed Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:31:51 +0000 Subject: [PATCH] use ostreecontainer --- .github/workflows/iso.yml | 3 +++ lorax_templates/embed_image.tmpl | 4 ++++ lorax_templates/set_installer.tmpl | 1 + 3 files changed, 8 insertions(+) create mode 100644 lorax_templates/embed_image.tmpl create mode 100644 lorax_templates/set_installer.tmpl 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