atomic-installer/: New subdirectory with Lorax template
This is migrated from https://github.com/projectatomic/rpm-ostree-toolbox/blob/master/src/py/lorax-embed-repo.tmpl It is a command template to embed content into the installer.
This commit is contained in:
parent
44178ef0b3
commit
71c243e572
10
atomic-installer/lorax-embed-repo.tmpl
Normal file
10
atomic-installer/lorax-embed-repo.tmpl
Normal file
@ -0,0 +1,10 @@
|
||||
## Lorax template to embed ostree repo into installer
|
||||
|
||||
<%page args="root, ostree_osname, ostree_repo, ostree_ref"/>
|
||||
|
||||
mkdir install/ostree
|
||||
|
||||
runcmd ostree --repo=${root}/install/ostree init --mode=archive-z2
|
||||
runcmd ostree --repo=${root}/install/ostree pull-local --disable-fsync ${ostree_repo} ${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"
|
Loading…
Reference in New Issue
Block a user