From 68481f48ae1ed383910223ac2bb61cb1bb9b3323 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 14 Apr 2022 12:39:13 +0200 Subject: [PATCH] Support specifying multiple devices in all mkfs versions (like xfs) mkfs.xfs already has `additionalProperties: true` for the devices section, as this is necessary for example when creating lvm2 setups. This should be possible for other filesystem types too. --- stages/org.osbuild.mkfs.btrfs | 2 +- stages/org.osbuild.mkfs.ext4 | 2 +- stages/org.osbuild.mkfs.fat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stages/org.osbuild.mkfs.btrfs b/stages/org.osbuild.mkfs.btrfs index b259a5f1..46a8cc15 100755 --- a/stages/org.osbuild.mkfs.btrfs +++ b/stages/org.osbuild.mkfs.btrfs @@ -18,7 +18,7 @@ import osbuild.api SCHEMA_2 = r""" "devices": { "type": "object", - "additionalProperties": false, + "additionalProperties": true, "required": ["device"], "properties": { "device": { diff --git a/stages/org.osbuild.mkfs.ext4 b/stages/org.osbuild.mkfs.ext4 index bb7b438a..57b875cf 100755 --- a/stages/org.osbuild.mkfs.ext4 +++ b/stages/org.osbuild.mkfs.ext4 @@ -18,7 +18,7 @@ import osbuild.api SCHEMA_2 = r""" "devices": { "type": "object", - "additionalProperties": false, + "additionalProperties": true, "required": ["device"], "properties": { "device": { diff --git a/stages/org.osbuild.mkfs.fat b/stages/org.osbuild.mkfs.fat index 9e76348d..851a09f1 100755 --- a/stages/org.osbuild.mkfs.fat +++ b/stages/org.osbuild.mkfs.fat @@ -18,7 +18,7 @@ import osbuild.api SCHEMA_2 = r""" "devices": { "type": "object", - "additionalProperties": false, + "additionalProperties": true, "required": ["device"], "properties": { "device": {