1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

generate with ostree objects

This commit is contained in:
Jason N. 2024-02-14 13:23:36 +00:00
parent 1828adb299
commit e3037d8f1e
5 changed files with 29 additions and 0 deletions

View file

@ -57,6 +57,7 @@ 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.tmpl \
--rootfs-size 9 \
./results/

View file

@ -0,0 +1,11 @@
<%page args="ostree_osname, ostree_install_repo, ostree_update_repo, ostree_install_ref, ostree_update_ref, ostree_oskey"/>
append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=${ostree_osname} --remote=${ostree_osname} --url=file:///ostree/repo --ref=${ostree_update_ref}"
append usr/share/anaconda/interactive-defaults.ks "firewall --use-system-defaults"
append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail"
%if ostree_osname != "fedora":
append usr/share/anaconda/interactive-defaults.ks "rm -f /etc/ostree/remotes.d/${ostree_osname}.conf"
append usr/share/anaconda/interactive-defaults.ks "ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/ --set=contenturl=${ostree_contenturl} ${ostree_osname} '${ostree_update_repo}'"
%endif
append usr/share/anaconda/interactive-defaults.ks "cp /etc/skel/.bash* /root"
append usr/share/anaconda/interactive-defaults.ks "%end"

View file

@ -0,0 +1,5 @@
<%page args="root"/>
runcmd mkdir ${root}/ostree
runcmd ostree --repo=${root}/ostree/repo init --mode=bare
runcmd ostree container unencapsulate --repo=${root}/ostree/repo ostree-unverified-image:docker://ghcr.io/jasonn3/base-main:39
runcmd ostree --repo=${root}/ostree/repo summary -u

View file

@ -0,0 +1 @@
append usr/share/anaconda/interactive-defaults.ks "ostreecontainer --remote=ostree-unverified-image:registry:ghcr.io/ublue-os/base-main:39 --url=file:///run/install/repo/base-main.tar --transport=oci-archive --no-signature-verification"

11
scripts/gen_xorriso.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
echo "-indev $(pwd)/results/images/boot.iso"
echo "-outdev $(pwd)/results/images/deploy.iso"
echo "-boot_image any replay"
echo "-volid Fedora-S-dvd-x86_64-39"
echo "-joliet on"
echo "-compliance joliet_long_names"
echo "-map $(pwd)/base-main.tar base-main.tar"
echo "-chmod 0444 base-main.tar"
echo "-end"