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

disk: enable customizing ESP partitions #1116

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ondrejbudai
Copy link
Member

@ondrejbudai ondrejbudai commented Dec 20, 2024

This commits allow people to customize their ESP partition. Previously,
we always added an ESP partition ourselves, regardless of the given
customizations, so the customization errored out if there was an ESP
because of a conflict. This commit alters the behaviour, so ESP is
only added automatically if it's not in the customizations.

Based on #1115.

@ondrejbudai ondrejbudai marked this pull request as draft December 20, 2024 14:14
// Examples:
// 3B8F8425-20E0-4F3B-907F-1A25A76F98E8 (/srv on GPT)
// 06 (FAT16 on DOS)
GUID string `json:"guid,omitempty" toml:"guid,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like calling this a GUID when it isn't always a GUID. In other places this is called Type, but that's obviously already been used. Maybe PartType?

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.
This commits allow people to customize their ESP partition. Previously,
we always added an ESP partition ourselves, regardless of the given
customizations, so the customization errored out if there was an ESP
because of a conflict. This commit alters the behaviour, so ESP is
only added automatically if it's not in the customizations.
@thozza
Copy link
Member

thozza commented Jan 9, 2025

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

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.

3 participants