1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-30 02:43:08 +00:00
fedora-kickstarts/atomic-installer/lorax-embed-repo.tmpl
2015-03-19 16:51:45 -04:00

12 lines
670 B
Cheetah

## Lorax template to embed an OSTree repository into the installer.iso
## and configure an interactive installer use to look for it.
##
## Note that we pull with depth=0 to only get *one* commit into the
## ISO, because we obviously don't want the full history.
<%page args="workdir, ostree_osname, ostree_repo, ostree_ref"/>
runcmd mkdir -p ${workdir}/iso-graft/content/repo
runcmd ostree --repo=${workdir}/iso-graft/content/repo init --mode=archive-z2
runcmd ostree --repo=${workdir}/iso-graft/content/repo remote add ostree-mirror --set=gpg-verify=false ${ostree_repo}
runcmd ostree --repo=${workdir}/iso-graft/content/repo pull --mirror ostree-mirror ${ostree_ref}