| |
@@ -4,8 +4,17 @@
|
| |
## 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="root, ostree_osname, ostree_repo, ostree_ref"/>
|
| |
- mkdir ostree
|
| |
+ ## Args:
|
| |
+ ## - root - the root directory of the iso tree
|
| |
+ ## - ostree_osname - the name of the os/name of remote
|
| |
+ ## - ostree_repo - the url of the remote
|
| |
+ ## - ostree_install_ref - the ref to use when creating the ISO
|
| |
+ ## - ostree_update_ref - the ref to use for updates of an installed system
|
| |
+
|
| |
+ <%page args="root, ostree_osname, ostree_repo, ostree_install_ref, ostree_update_ref"/>
|
| |
+ runcmd mkdir ${root}/ostree
|
| |
runcmd ostree --repo=${root}/ostree/repo init --mode=bare
|
| |
- runcmd ostree --repo=${root}/ostree/repo remote add ostree-mirror --set=gpg-verify=false ${ostree_repo}
|
| |
- runcmd ostree --repo=${root}/ostree/repo pull --mirror ostree-mirror ${ostree_ref}
|
| |
+ runcmd ostree --repo=${root}/ostree/repo remote add ${ostree_osname} --set=gpg-verify=false ${ostree_repo}
|
| |
+ runcmd ostree --repo=${root}/ostree/repo pull --mirror ${ostree_osname} ${ostree_install_ref}
|
| |
+ runcmd ostree --repo=${root}/ostree/repo refs ${ostree_install_ref} --create ${ostree_update_ref}
|
| |
+ runcmd ostree --repo=${root}/ostree/repo summary -u
|
| |