Skip to content

Commit

Permalink
stages(sgdisk): support label option
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
dustymabe authored and achilleas-k committed Feb 6, 2024
1 parent fc185da commit 151b6e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions stages/org.osbuild.sgdisk
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/data/manifests/fedora-ostree-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@
}
},
{
"type": "org.osbuild.sfdisk",
"type": "org.osbuild.sgdisk",
"devices": {
"device": {
"type": "org.osbuild.loopback",
Expand Down
2 changes: 1 addition & 1 deletion test/data/manifests/fedora-ostree-image.mpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 151b6e4

Please sign in to comment.