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

Add support for custom partition types/GUIDs in blueprints #1115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ondrejbudai
Copy link
Member

Introduce the ability to specify custom partition types/GUIDs for both DOS and GPT partition types.

For DOS partitions, the field is technically called type, but this is already a taken field, so I went with GUID from the GPT vocabulary for the new field name.

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Edit: I incline to Brian's comment #1116 (comment), but I don't have a strong preference.

@thozza
Copy link
Member

thozza commented Jan 9, 2025

Rebased due to image build cache layout change (#1130)

Copy link

github-actions bot commented Feb 9, 2025

This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 9, 2025
@supakeen supakeen removed the Stale label Feb 9, 2025
@achilleas-k
Copy link
Member

LGTM 👍

Edit: I incline to Brian's comment #1116 (comment), but I don't have a strong preference.

I also like PartType over GUID. It fits well with the rest:

  • type: general type for the partition: plain, lvm, or btrfs
  • fs_type: filesystem type for plain partitions and LVs
  • part_type: general name for dos and gpt partition types

People need to customize partitition types/GUIDs, so this commit adds
this option to the blueprint.

It's technically a partition type for DOS partitions, but the key type
is already taken, so let's go with guid both for DOS and GPT.
This commit takes the blueprint customization added in the last commit,
and makes it actually useful.
@thozza thozza requested review from achilleas-k and a team as code owners February 12, 2025 10:17
@thozza thozza requested review from mvo5 and schuellerf February 12, 2025 10:17
@achilleas-k
Copy link
Member

Are we changing the option to part_type? I'd prefer if we did unless someone has a strong(er) opinion about it.

@thozza
Copy link
Member

thozza commented Feb 13, 2025

Are we changing the option to part_type? I'd prefer if we did unless someone has a strong(er) opinion about it.

I vote for changing it.

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.

4 participants