Skip to content

Basic support for aboot support in bootc-image-builder.#1781

Closed
alexlarsson wants to merge 3 commits into
osbuild:mainfrom
alexlarsson:more-partition-details
Closed

Basic support for aboot support in bootc-image-builder.#1781
alexlarsson wants to merge 3 commits into
osbuild:mainfrom
alexlarsson:more-partition-details

Conversation

@alexlarsson

Copy link
Copy Markdown
Contributor

This adds required features for making bootc-image-builder support aboot images.

The two features are:

Add support for Osinfo to find the kernel dir (/usr/lib/moduler/*) in the target container, and check if it contains an aboot.img. This will be used by bootc-image-builder to trigger the "aboot mode" for the image. This is similar to what was done for bootc install in bootc-dev/bootc#1532.

Support adding a "disk.Raw" payload, that specifies a file from an earlier pipeline and writes it to a device. This uses the new org.ostree.write-device stage (added in v154).

The intent is that bootc-image-builder will detect that there is an aboot.img in the target image, and then find the correct partition in the partition table and add a disk.Raw payload to the raw boot partition to initialize it from the file. The corresponding bc-i-b code is available here: https://github.com/alexlarsson/bootc-image-builder/tree/aboot-support for reading, but will later be a separate PR.

Note: The bc-i-b branch above doesn't build against this PR, because bc-i-b doesn't build against osbuild-images v0.178 due to API changes, but I tested it against v0.177, and it worked.

This allows specifying more GPT partition details, which we need
for automotive use, because our images contain pre-generated mount
file that refers to these.
UUID already existed in the struct, but we add the ability to
customize it via the blueprint,

Label was added, with ability to customize via blueprint.
This completes the ability to customize partition labels and uuids.
@alexlarsson
alexlarsson requested review from a team and achilleas-k as code owners August 22, 2025 08:30
@alexlarsson
alexlarsson requested review from croissanne and mvo5 August 22, 2025 08:30
@alexlarsson

Copy link
Copy Markdown
Contributor Author

Sorry, this was the wrong source branch, created #1782 with the real one

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.

1 participant