Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip/obbardc/action-image-partition-label-partlabel-type #221

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Jun 23, 2020

Allow setting filesystem label, partition label and partition type from the recipe.

@obbardc obbardc force-pushed the wip/obbardc/action-image-partition-label-partlabel-type branch from 4dc7cc0 to b306bf9 Compare June 23, 2020 16:50
actions/image_partition_action.go Show resolved Hide resolved
actions/image_partition_action.go Show resolved Hide resolved
actions/image_partition_action.go Outdated Show resolved Hide resolved
Debos currently sets the GPT partition label to the `Name` property of the
Partition and does not allow the GPT partition label to be set from the recipe.

In some situations setting the GPT partition label is required, so add the
property `PartLabel` to the Partition and set the GPT partition label to the value
of that property. By default, the `PartLabel` property is set to the `Name`
property of the Partition to not break backwards compatibility.

Resolves: go-debos#202

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Debos currently sets the partition type to filesystem type and
does not allow the partition type to be set from the recipe.

In some situations setting the partition type is required, so add the
property `PartType` to the Partition and set the partition type to the value
of that property. If the `PartType` property is unset, the original partition
type is retained thus not breaking backwards compatibility.

For msdos, the partition type should be hexadecimal and 2-characters long.
For gpt, the partition GUID should be in GUID format and 36-characters long.
Some examples and further reading is included in the documentation.

Resolves: go-debos#98

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
@obbardc obbardc force-pushed the wip/obbardc/action-image-partition-label-partlabel-type branch from b306bf9 to a9de93c Compare August 14, 2020 08:57
@sjoerdsimons sjoerdsimons merged commit b86d0d4 into go-debos:master Aug 14, 2020
@obbardc obbardc deleted the wip/obbardc/action-image-partition-label-partlabel-type branch July 25, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants