Skip to content

Conversation

@achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Aug 12, 2025

Remove the partition.PartitioningMode type and import it from osbuild/blueprint.

This is the other side of osbuild/blueprint#28

@achilleas-k achilleas-k force-pushed the rm/partitioning-mode branch from 8598a2b to 274a89d Compare August 12, 2025 13:52
@achilleas-k achilleas-k marked this pull request as ready for review August 12, 2025 13:52
@achilleas-k achilleas-k requested a review from a team as a code owner August 12, 2025 13:52
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.

A bit more context / motivation / reasoning behind moving the partitioning mode to blueprint repo would be nice, since I'm not fully aware of it (and thus it feels a bit weird TBH).

Other than that, there is a go mod replace in the PR.

go.mod Outdated
google.golang.org/protobuf v1.36.6 // indirect
)

replace github.com/osbuild/blueprint => github.com/achilleas-k/blueprint v0.0.0-20250812104104-18df7eb83d6a
Copy link
Member

Choose a reason for hiding this comment

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

:fishsticks:

Copy link
Member Author

Choose a reason for hiding this comment

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

OH NO!

Remove the partition.PartitioningMode type and import it from
osbuild/blueprint.

The partitioning mode is a blueprint option that can be used in
conjunction with Filesystem customizations to control how the partition
table will change to accommodate the new partitions (by default, a
partition table will be "upgraded" to LVM when a custom filesystem is
added, unless the partitioning mode is set to "raw").  Initially, it was
defined as an image option, and is still treated as an image option
here, while being a Blueprint option in all user-facing places
(osbuild-composer).  This commit does not remove it from the image
options, but drops the images copy of the enum type to use the
blueprint.PartitioningMode instead.
@achilleas-k
Copy link
Member Author

A bit more context / motivation / reasoning behind moving the partitioning mode to blueprint repo would be nice, since I'm not fully aware of it (and thus it feels a bit weird TBH).

Started writing a longer commit message that explains the whole thing and I think we might have a bug that ignores the mode here. I'll add some tests. Setting this to draft in the meantime.

@achilleas-k achilleas-k marked this pull request as draft August 12, 2025 15:13
@achilleas-k achilleas-k force-pushed the rm/partitioning-mode branch from 274a89d to 4c79b25 Compare August 12, 2025 15:13
@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

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