2015-03-16 17:52:28 +00:00
|
|
|
## Lorax template to embed an OSTree repository into the installer.iso
|
|
|
|
## and configure an interactive installer use to look for it.
|
2015-03-19 20:50:41 +00:00
|
|
|
##
|
|
|
|
## 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}
|