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: extract maybeAddBootPartition() helper #1062

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Nov 25, 2024

This commit extracts a new maybeAddBootPartition() helper to
make the NewCustomPartitionTable() a little bit more linear
to read.

Followup, c.f.
#1041 (comment)


disk: unexport AddBootPartition and
AddPartitionsForBootMode

Those two are not used outside of disk so let's unexport them
to keep a smaller API.

Followups, c.f.
#1041 (comment)

mvo5 added 2 commits November 25, 2024 15:53
Those two are not used outside of `disk` so let's unexport them
to keep a smaller API.

Followups, c.f.
osbuild#1041 (comment)
This commit extracts a new `maybeAddBootPartition()` helper to
make the `NewCustomPartitionTable()` a little bit more linear
to read.

Followup, c.f.
osbuild#1041 (comment)
@mvo5 mvo5 force-pushed the disk-unexport-things branch from 3d6d710 to bf0b53d Compare November 25, 2024 14:53
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

Neat!

@achilleas-k achilleas-k added this pull request to the merge queue Nov 25, 2024
Merged via the queue into osbuild:main with commit 70443b4 Nov 25, 2024
19 checks passed
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