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-16 17:40:31 +00:00
|
|
|
|
2015-03-16 17:52:28 +00:00
|
|
|
<%page args='root'/>
|
2015-03-16 17:40:31 +00:00
|
|
|
mkdir install/ostree
|
|
|
|
runcmd ostree --repo=${root}/install/ostree init --mode=archive-z2
|
2015-03-16 17:52:28 +00:00
|
|
|
runcmd ostree remote add ostree-mirror --repo=${root}/install/ostree/ --set=gpg-verify=false @OSTREE_URL@
|
|
|
|
runcmd ostree --repo=${root}/install/ostree/ pull --mirror ostree-mirror @OSTREE_REF@
|
|
|
|
|
|
|
|
|
|
|
|
append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=@OSTREE_OSNAME@ --remote=@OSTREE_OSNAME@ --url=file:///install/ostree --ref=@OSTREE_REF@\n"
|
|
|
|
append usr/share/anaconda/interactive-defaults.ks "services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local\n"
|
|
|
|
append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail\nrm -f /etc/ostree/remotes.d/@OSTREE_OSNAME@.conf\n%end\n"
|
2015-03-16 17:40:31 +00:00
|
|
|
|