From 71c243e572a95dad2f4945492054d1d962b566bf Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 16 Mar 2015 13:40:31 -0400 Subject: [PATCH] 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. --- atomic-installer/lorax-embed-repo.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 atomic-installer/lorax-embed-repo.tmpl diff --git a/atomic-installer/lorax-embed-repo.tmpl b/atomic-installer/lorax-embed-repo.tmpl new file mode 100644 index 0000000..97dd768 --- /dev/null +++ b/atomic-installer/lorax-embed-repo.tmpl @@ -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"