0840fc1394
These are now based on https://github.com/rhinstaller/lorax/pull/8
12 lines
670 B
Cheetah
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}
|