aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-24 18:05:12 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-24 18:05:12 +0100
commitb8a4d55542002bd83d514a1ffe3aeffca417eb4c (patch)
treefa34fcbccb51e52d2f37c6969ac0fefb50c4438b
parentcatalyst: generate .sha256 file if any digest is enabled (diff)
downloadcatalyst-b8a4d55542002bd83d514a1ffe3aeffca417eb4c.tar.gz
catalyst-b8a4d55542002bd83d514a1ffe3aeffca417eb4c.tar.bz2
catalyst-b8a4d55542002bd83d514a1ffe3aeffca417eb4c.zip
containers: Start with a mock config what we target
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--containers/config/chroot.toml42
1 files changed, 42 insertions, 0 deletions
diff --git a/containers/config/chroot.toml b/containers/config/chroot.toml
new file mode 100644
index 00000000..a766069c
--- /dev/null
+++ b/containers/config/chroot.toml
@@ -0,0 +1,42 @@
+#
+# we always have a section [xxx] where xxx equals the filename
+# this describes properties of all containers using this method
+#
+[chroot]
+
+# does catalyst have to provide bind mounts (e.g. /proc /dev ...)?
+setup_mounts = true
+
+# does catalyst have to provide process isolation (i.e. unshare)?
+# setup_namespaces = false
+
+
+# do we need to copy files *beyond* the stage definition specific
+# ones into the isolated filesystem (e.g. /linuxrc)?
+# support_files =
+
+# do we need to convert the filesystem into an image file and back?
+setup_image = false
+
+# image pack and unpack commands, if setup_image = true
+# %c : catalyst support script directory (containers/support)
+# %D : the root directory of the file system
+# %F : the filesystem image (i.e., qcow2)
+# image_pack = ...
+# image_unpack = ...
+
+# does catalyst have to call setarch?
+use_setarch = true
+
+# which program call starts up the process?
+# %c : catalyst support script directory (containers/support)
+# %D : the root directory of the file system, OR
+# %F : the filesystem image (i.e., qcow2)
+# %@ : the command line which is started inside the container
+command = chroot %D %@
+
+
+
+# how precisely further sections should look like is still unclear
+# * maybe subcases: [chroot.linux32]?
+# * maybe stage-specific: [chroot.stage1]?