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

bib: add support for the new Disk customizations #721

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

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Nov 21, 2024

[It is draft right now because it has quite a few rough edges in the code but mostly because the LVM case is not working right now and it's unclear why, but pushing it will help with exposure/feedback, there are also some issues in "images" that are uncovered here that should be fixed there (like minsize seems to be not working for strings)]

This PR adds support for the new Disk customizations from osbuild/images#1041 into bib.

Comment on lines 207 to 208
// XXX: remove once https://github.com/osbuild/images/pull/1054 is
// merged, then validation is part of GetPartitioning
Copy link
Member

Choose a reason for hiding this comment

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

Merged!

@@ -38,6 +38,7 @@ class ImageBuildResult(NamedTuple):
img_arch: str
container_ref: str
rootfs: str
partition_mode: str
Copy link
Member

Choose a reason for hiding this comment

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

This confused me a bit because it made me think of the disk.PartitioningMode that we have for the older partitioning customizations. This is only meant for tests and not user facing, so it's not really that important, but it might be confusing for test writing and reading.

I suggest we rename it to something else, something that implies it's a keyword for a particular test partitioning configuration (which is what it is, right?). Partitioning config maybe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, excellent feedback, I went with disk_config for now but partion_config or disk_customization would of course also be an option

@mvo5 mvo5 force-pushed the use-new-disk-customizations branch from 16dcb79 to cbf73df Compare November 22, 2024 15:01
This commit makes use of the excellent work in
osbuild/images#1041 and wires up support
to generate LVM and btrfs volumes via the new disk customizations.

It also add tests.
@mvo5 mvo5 force-pushed the use-new-disk-customizations branch from cbf73df to b1af681 Compare November 22, 2024 15:42
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