stages(sgdisk): support label option

We only support `gpt` here so it would seem this option doesn't
make much sense to add, but it will make it so that the mpp-define-images
from osbuild-mpp can be passed in to `org.osbuild.sgdisk` just as it
can be passed in today to `org.osbuild.sfdisk`.
This commit is contained in:
Dusty Mabe 2024-01-30 13:39:46 -05:00 committed by Achilleas Koutsou
parent fc185dae8c
commit 151b6e48ae
3 changed files with 7 additions and 2 deletions

View file

@ -35,6 +35,11 @@ SCHEMA_2 = r"""
"type": "boolean",
"default": true
},
"label": {
"description": "The type of the partition table. Only 'gpt' supported.",
"type": "string",
"enum": ["gpt"]
},
"partitions": {
"description": "Partition layout ",
"type": "array",

View file

@ -1216,7 +1216,7 @@
}
},
{
"type": "org.osbuild.sfdisk",
"type": "org.osbuild.sgdisk",
"devices": {
"device": {
"type": "org.osbuild.loopback",

View file

@ -143,7 +143,7 @@ pipelines:
filename: disk.img
size:
mpp-format-string: '{image.size}'
- type: org.osbuild.sfdisk
- type: org.osbuild.sgdisk
devices:
device:
type: org.osbuild.loopback