summaryrefslogtreecommitdiff
path: root/clusters/minimal-system-deploy-ostree.morph
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-10-17 08:10:28 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-10-17 08:10:28 +0000
commit3b387c376c813d611df05667e8f3490678ef5ba4 (patch)
tree57dc868983c639f8c3e53c0e1c5dac25d35ccf2b /clusters/minimal-system-deploy-ostree.morph
parent36f7e4923ae5d03dd345d74f7fcade48c99a498d (diff)
downloaddefinitions-3b387c376c813d611df05667e8f3490678ef5ba4.tar.gz
Add ostree.write deployment extensionstaging/jjardon/ostree.writejjardon/ostree.write
Reverts commit 36f7e4923ae5d03dd345d74f7fcade48c99a498d This is a simple deployment extension to write the results of a Baserock build to an OSTree repo. See ostree.write.help for more information. The Baserock reference systems contain static device nodes, which are not supported by OSTree, and are obsolete on Linux systems. To work around this problem, I added a strip-device-nodes.configure extension. The systems should still work the same as devtmpfs will create the device nodes. I've tested this by deploying minimal-system-x86_64 to an OSTree repo, then checking it out into a temporary directory, creating a read-only bind-mount of the temporary directory and chrooting then into it. This is only going to be useful for containers systems and chroots for the time being. We would need to make some quite major changes to the Baserock reference systems to enable deployment to VMs or bare metal using OSTree. Change-Id: Ic393bdec7b28341fc5dfa56bb684217d964be5ff
Diffstat (limited to 'clusters/minimal-system-deploy-ostree.morph')
-rw-r--r--clusters/minimal-system-deploy-ostree.morph22
1 files changed, 22 insertions, 0 deletions
diff --git a/clusters/minimal-system-deploy-ostree.morph b/clusters/minimal-system-deploy-ostree.morph
new file mode 100644
index 00000000..c0f4ed7c
--- /dev/null
+++ b/clusters/minimal-system-deploy-ostree.morph
@@ -0,0 +1,22 @@
+name: minimal-system-deploy-ostree
+kind: cluster
+description: |
+ Example of deploying a minimal system to a local OSTree repo.
+systems:
+- morph: systems/minimal-system-x86_64-generic.morph
+ deploy:
+ minimal-system:
+ type: extensions/ostree
+
+ # This is the default location for the repo on systems that were
+ # *deployed* with OSTree. You can use any repo created with `ostree init`
+ # here for testing purposes.
+ location: /ostree/repo
+
+ OSTREE_BRANCH: minimal-system-x86_64
+ OSTREE_COMMIT_SUBJECT: Example deployment of minimal-system-x86_64
+
+ STRIP_DEVICE_NODES: true
+
+ HOSTNAME: tiny-x86_64
+ INIT_SYSTEM: busybox