-
Notifications
You must be signed in to change notification settings - Fork 74
disk: remove local PartitioningMode type #1747
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
base: main
Are you sure you want to change the base?
Conversation
8598a2b to
274a89d
Compare
thozza
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
There was a problem hiding this comment.
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.
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. |
274a89d to
4c79b25
Compare
|
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. |
|
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. |
|
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. |
Remove the partition.PartitioningMode type and import it from osbuild/blueprint.
This is the other side of osbuild/blueprint#28