From 7e776a07632a098f60745867f73032f8d9c54faa Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 8 Oct 2021 15:12:26 +0000 Subject: [PATCH] meta: allow mounts for all stages If a stage has not itself defined the `mounts` property, allow any mounts. This is in preparation to support specialized mounts, such as bind mounts or ostree deployment mounts to transparently work with any stage. NB: devices are not allowed so this will not be applicable for the current filesystem mounts. --- osbuild/meta.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osbuild/meta.py b/osbuild/meta.py index 1b499415..3c083a6a 100644 --- a/osbuild/meta.py +++ b/osbuild/meta.py @@ -331,6 +331,10 @@ class ModuleInfo: type_id: {"enum": [self.name]}, **opts, } + if "mounts" not in schema["properties"]: + schema["properties"]["mounts"] = { + "type": "array" + } schema["required"] = [type_id] elif self.type in ("Device"): schema["additionalProperties"] = True