summaryrefslogtreecommitdiff
path: root/extensions/strip-device-nodes.configure.help
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 /extensions/strip-device-nodes.configure.help
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 'extensions/strip-device-nodes.configure.help')
-rw-r--r--extensions/strip-device-nodes.configure.help29
1 files changed, 29 insertions, 0 deletions
diff --git a/extensions/strip-device-nodes.configure.help b/extensions/strip-device-nodes.configure.help
new file mode 100644
index 00000000..43b79a77
--- /dev/null
+++ b/extensions/strip-device-nodes.configure.help
@@ -0,0 +1,29 @@
+# Copyright (C) 2015 Codethink Limited
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, see <http://www.gnu.org/licenses/>.
+
+help: |
+ A Baserock configuration extension for removing static device nodes.
+
+ Parameters:
+
+ STRIP_DEVICE_NODES=<1|0>: whether to strip device nodes
+
+ This extension is a workaround for a flaw in the Baserock reference systems.
+ They still contain statically created device nodes, which is not useful any
+ more for Linux systems due to the existance of the 'devtmpfs' filesystem.
+ The 'devtmpfs' filesystem creates device nodes automatically at run time.
+
+ Static device nodes are deliberately not supported by the OSTree tool, so this
+ .configure extension is needed to use the Baserock reference systems with the
+ ostree.write deployment extension.