-
Notifications
You must be signed in to change notification settings - Fork 58
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
base: main
Are you sure you want to change the base?
Conversation
7be1324
to
16dcb79
Compare
bib/cmd/bootc-image-builder/image.go
Outdated
// XXX: remove once https://github.com/osbuild/images/pull/1054 is | ||
// merged, then validation is part of GetPartitioning |
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.
Merged!
test/test_build.py
Outdated
@@ -38,6 +38,7 @@ class ImageBuildResult(NamedTuple): | |||
img_arch: str | |||
container_ref: str | |||
rootfs: str | |||
partition_mode: str |
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.
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?
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.
Yeah, excellent feedback, I went with disk_config
for now but partion_config
or disk_customization
would of course also be an option
16dcb79
to
cbf73df
Compare
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.
cbf73df
to
b1af681
Compare
[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.